return prefs;
return userPrefs;
	private static UserPreferences createDefaultUserPreferences(IProject project) {		UserPreferences prefs = UserPreferences.createDefaultUserPreferences();				try {						// For backwards-compatibility, try to use the old project filter settings			// and active detector set. 						// Project filter settings			ProjectFilterSettings filterSettings = getProjectFilterSettings(project);						// Active detector set			String activeDetectorList =				(String) project.getSessionProperty(SESSION_PROPERTY_ACTIVE_DETECTORS);			if (activeDetectorList != null) {				prefs.enableAllDetectors(false);				DetectorFactoryCollection factoryCollection = DetectorFactoryCollection.instance();								StringTokenizer st = new StringTokenizer(activeDetectorList, LIST_DELIMITER);				while (st.hasMoreTokens()) {					String factoryName = st.nextToken();					DetectorFactory factory = factoryCollection.getFactory(factoryName);					if (factory != null) {						prefs.enableDetector(factory, true);					}				}			}		} catch (CoreException e) {			FindbugsPlugin.getDefault().logException(e, "Could not get FindBugs settings");		}				return prefs;	}