public void choose(boolean enabled, String what) { Plugin plugin = DetectorFactoryCollection.instance().getPluginById(what); if (plugin == null) throw new IllegalArgumentException("Unknown plugin: " + what); plugin.setEnabled(enabled); }
public boolean choose(DetectorFactory factory) { boolean enabled = isDetectorEnabled(factory);    return enabled; }
					public void choose(boolean enabled, String what) {						Plugin plugin = DetectorFactoryCollection.instance().getPluginById(what);						if (plugin == null)							throw new IllegalArgumentException("Unknown plugin: " + what);						plugin.setEnabled(enabled);					}