if (!userPreferences.isDetectorEnabled(factory))
if (!findBugs.getUserPreferences().isDetectorEnabled(factory))
	private boolean isDetectorEnabled(DetectorFactory factory) {		if (!factory.getPlugin().isEnabled())			return false;				if (!userPreferences.isDetectorEnabled(factory))			return false;				if (!factory.isEnabledForCurrentJRE())			return false;				// Slow first pass detectors are usually disabled, but may be explicitly enabled		if (!analysisContext.getBoolProperty(FindBugsAnalysisFeatures.INTERPROCEDURAL_ANALYSIS)				&& factory.isDetectorClassSubtypeOf(InterproceduralFirstPassDetector.class))			return false;		// Training detectors are enabled if, and only if, we are emitting training output		// XXX: grotesque hack for NoteCheckReturnValue. Need to fix for real.		boolean isTrainingDetector = factory.isDetectorClassSubtypeOf(TrainingDetector.class)			|| (emitTrainingOutput && factory.getFullName().equals("edu.umd.cs.findbugs.detect.NoteCheckReturnValue"));		if (isTrainingDetector != emitTrainingOutput)			return false;				return true;	}