code: @Deprecated
      public Detector[] instantiateDetectorsInPass(BugReporter bugReporter) {
          int count;
  
          count = 0;
          for (DetectorFactory factory : orderedFactoryList) {
              if (factory.isDetectorClassSubtypeOf(Detector.class)) {
                  count++;
              }
          }
  
          Detector[] detectorList = new Detector[count];
  
          count = 0;
          for (DetectorFactory factory : orderedFactoryList) {
              if (factory.isDetectorClassSubtypeOf(Detector.class)) {
                  detectorList[count++] = factory.create(bugReporter);
              }
          }
  
          return detectorList;
      }
docs: Instantiate all of the detectors in this pass as objects implementing the
  BCEL-only Detector interface. Detectors that do not support this
  interface will not be created. Therefore, new code should use the
  instantiateDetector2sInPass() method, which can support all detectors.
  
  @param bugReporter
  the BugReporter
  @return array of Detectors
  @deprecated call instantiateDetector2sInPass() instead