factoryList.add(factory);
if (factory.isEnabled()) factoryList.add(factory);
	public static List readDetectorFactories(IProject project)		throws CoreException {		List factoryList =			(List) project.getSessionProperty(SESSION_PROPERTY_ACTIVE_DETECTORS);		if (factoryList == null) {			String activeDetectorList =				project.getPersistentProperty(PERSISTENT_PROPERTY_ACTIVE_DETECTORS);			if (activeDetectorList != null) {				factoryList = getDetectorFactoriesFromProperty(activeDetectorList);			}			else {				factoryList = new ArrayList();				Iterator iterator =					DetectorFactoryCollection.instance().factoryIterator();				while (iterator.hasNext()) {					DetectorFactory factory = (DetectorFactory) iterator.next();					factoryList.add(factory);				}			}			project.setSessionProperty(				PERSISTENT_PROPERTY_ACTIVE_DETECTORS,				factoryList);		}		return factoryList;	}