for (Iterator<DetectorFactory> i = candidateSet.iterator(); i.hasNext();) { DetectorFactory factory = i.next();
for (DetectorFactory factory : candidateSet) {
	private Set<DetectorFactory> selectDetectors(			DetectorFactorySelector selector, Set<DetectorFactory> candidateSet) {		Set<DetectorFactory> result = new HashSet<DetectorFactory>();		for (Iterator<DetectorFactory> i = candidateSet.iterator(); i.hasNext();) {			DetectorFactory factory = i.next();			if (selector.selectFactory(factory)) {				result.add(factory);			}		}		return result;	}