OccurrencesAnalyzer analyzer = new OccurrencesAnalyzer();
IMessage[] messages = analyzer.analyzeDocument(
nature, module, analysisPreferences, document,
new NullProgressMonitor(), indentPrefs);
Preferences prefs = getPreferences();
//Map<String,String> builtins = Preferences.getInstance()
// .getMapValue(project, "org.eclim.python.builtins");
HashMap<Integer,Set<String>> ignores = new HashMap<Integer,Set<String>>();
ignores.put(
IAnalysisPreferences.TYPE_UNRESOLVED_IMPORT,
prefs.getSetValue(project, "org.eclim.python.ignore.unresolved.imports"));
ignores.put(
IAnalysisPreferences.TYPE_ASSIGNMENT_TO_BUILT_IN_SYMBOL,
prefs.getSetValue(project, "org.eclim.python.ignore.builtin.reserved"));
ArrayList<Error> errors = new ArrayList<Error>();
for (IMessage message : messages){
// this results in a lot of false positives for runtime added attributes
if (message.getType() ==