detectors = result.toArray(new Detector[0]);
detectors = result.toArray(new Detector[result.size()]);
  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()) {			Detector detector = factory.create(bugReporter);			detector.setAnalysisContext(analysisContext);			result.add(detector);		}	}	detectors = result.toArray(new Detector[0]);  }