public void applyDetectors() {
final DetectorFactoryCollection detectorFactoryCollection = FindBugsPreferences.getDetectorFactorCollection();
final Iterator<DetectorFactory> iterator = detectorFactoryCollection.factoryIterator();
while (iterator.hasNext()) {
final DetectorFactory factory = iterator.next();
final Plugin plugin = factory.getPlugin();
final boolean enabledByUser = Boolean.valueOf(getDetectors().get(factory.getShortName()));
final boolean enable = enabledByUser && plugin.isGloballyEnabled();