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