private void assignToPass(DetectorFactory factory,AnalysisPass pass){
  pass.addToPass(factory);
  assignedToPassSet.add(factory);
}

private void assignToPass ( DetectorFactory factory , AnalysisPass pass ) { pass . addToPass ( factory ) ; assignedToPassSet . add ( factory ) ; }
make a detectorfactory a member of an analysispass .
