if (factory.getPlugin().isEnabled() && factory.isEnabled()) {
if (factory.getPlugin().isEnabled() && userPreferences.isDetectorEnabled(factory)) {
	private void createDetectors() {		ArrayList<Detector> result = new ArrayList<Detector>();		Iterator<DetectorFactory> i = DetectorFactoryCollection.instance().factoryIterator();		while (i.hasNext()) {			DetectorFactory factory = i.next();			if (factory.getPlugin().isEnabled() && factory.isEnabled()) {				Detector detector = factory.create(bugReporter);				detector.setAnalysisContext(analysisContext);				result.add(detector);			}		}		detectors = result.toArray(new Detector[result.size()]);	}