void (@NotNull PsiLiteralExpression expression) { Ref<String> description = new Ref<>(); final HighlightInfo.Builder parsingError = HighlightUtil.checkLiteralExpressionParsingError(expression, PsiUtil.getLanguageLevel(expression), null, description); if (parsingError != null) { throw evaluateException(description.get()); } final PsiType type = expression.getType(); if (type == null) { throw evaluateException(expression + ": null type"); } myResult = new LiteralEvaluator(expression.getValue(), type.getCanonicalText()); }