PsiVariable (@NotNull String referenceText, PsiElement context) { final boolean[] problemWithAccess = new boolean[1]; PsiVariable variable = resolveVar(referenceText, context, problemWithAccess); return problemWithAccess[0] ? null : variable; }