String (@Nullable ExpressionInfo expressionInfo, @NotNull Document document) { if (expressionInfo == null) { return null; } String text = expressionInfo.getDisplayText(); return text == null ? document.getText(expressionInfo.getTextRange()) : text; }