Iterator iterator = DetectorFactoryCollection.instance().factoryIterator(); while (iterator.hasNext()) { DetectorFactory factory = (DetectorFactory) iterator.next(); if (factory.isEnabled()) result.getDetectorFactories().add(factory); }
	public static ProjectFilterSettings createDefault() {		ProjectFilterSettings result = new ProjectFilterSettings();				// Add all bugs categories		for (Iterator<String> i = I18N.instance().getBugCategories().iterator(); i.hasNext(); ) {			result.addCategory(i.next());		}				// Set default priority threshold		result.setMinPriority(DEFAULT_PRIORITY);				return result;	}