Object (@Nullable PsiExpression expression) { if (expression == null) return null; return JavaPsiFacade.getInstance(expression.getProject()).getConstantEvaluationHelper() .computeConstantExpression(expression, false); }