PsiVariable (@NotNull String referenceText, final PsiElement context, final boolean[] problemWithAccess) { final PsiJavaParserFacade parserFacade = JavaPsiFacade.getInstance(myManager.getProject()).getParserFacade(); try { final PsiJavaCodeReferenceElement ref = parserFacade.createReferenceFromText(referenceText, context); return ResolveVariableUtil.resolveVariable(ref, problemWithAccess, null); } catch (IncorrectOperationException e) { return null; } }