void (@NotNull PsiElement element, @NotNull AnnotationHolder holder) { if (element instanceof PsiPlainText && doAnnotate) { int i = element.getText().indexOf(wordToAnnotate); if (i != -1) { holder.newAnnotation(HighlightSeverity.WARNING, "warning").range(new TextRange(i, i+wordToAnnotate.length())).create(); iDidIt(); } } }