Object (@Nullable PsiElement expression, boolean throwExceptionOnOverflow) { if (expression == null) return null; ConstantExpressionEvaluator expressionEvaluator = LanguageConstantExpressionEvaluator.INSTANCE.forLanguage(expression.getLanguage()); if (expressionEvaluator != null) { return expressionEvaluator.computeConstantExpression(expression, throwExceptionOnOverflow); } return null; }