}
IPyParser pyParser = new PyParser(edit);
boolean useAnalysisOnlyOnDocSave = useAnalysisOnlyOnDocSave();
pyParser.resetTimeoutPreferences(useAnalysisOnlyOnDocSave);
makeParserAssociations(edit, pyParser);
IDocument doc = edit.getDocument();
pyParser.setDocument(doc, edit.getEditorInput());