int addValue = 0;
PluginProxy[] plugins = PluginProxyManager.getInstance().getActivatedPlugins();
for(PluginProxy plugin : plugins) {
ImportanceValue value = plugin.getImportanceValueForProgram(program);
if(value.getWeight() > 0 && value.getTotalImportance() >= Program.MIN_MARK_PRIORITY) {
count += value.getWeight();
addValue += value.getTotalImportance();
}
}
if(count > 0) {
return (byte)Math.max(addValue/count, Program.MIN_MARK_PRIORITY);