factory.setEnabled(enabled);
userPreferences.enableDetector(factory, enabled);
					public void choose(boolean enabled, String what) {						DetectorFactory factory = DetectorFactoryCollection.instance()							.getFactory(what);						if (factory == null)							throw new IllegalArgumentException("Unknown detector: " + what);						factory.setEnabled(enabled);					}