DetectorFactory factory = getDetectorFactoryCollection().getFactory(what);
DetectorFactory factory = DetectorFactoryCollection.instance().getFactory(what);
				public void choose(boolean enabled, String what) {					DetectorFactory factory = getDetectorFactoryCollection().getFactory(what);					if (factory == null)						throw new IllegalArgumentException("Unknown detector: " + what);					if (FindBugs.DEBUG) {						System.err.println("Detector " + factory.getShortName() + " " +								(enabled ? "enabled" : "disabled") +								", userPreferences="+System.identityHashCode(userPreferences));					}					userPreferences.enableDetector(factory, enabled);				}