PsiExpression (@NotNull String exprText, @NotNull PsiManager manager, @NotNull ClsElementImpl parent) { PsiJavaParserFacade parserFacade = JavaPsiFacade.getInstance(manager.getProject()).getParserFacade(); try { PsiExpression expr = parserFacade.createExpressionFromText(exprText, null); return psiToClsExpression(expr, parent); } catch (IncorrectOperationException e) { LOG.error(e); return null; } }