PsiElement () { PsiReference ref = configureByFile("resolve/" + getTestName(false) + ".py"); // if need be: PythonLanguageLevelPusher.setForcedLanguageLevel(project, LanguageLevel.PYTHON26); return ref.resolve(); }