void (@NotNull GrDocComment comment) { String text = comment.getText(); if (!text.endsWith("*/")) { TextRange range = comment.getTextRange(); myHolder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("doc.end.expected")).range(new TextRange(range.getEndOffset() - 1, range.getEndOffset())).create(); } }