void (@NotNull PsiElement element, @NotNull AnnotationHolder holder) { while (!allowToRun.get()) { Thread.yield(); } if (element instanceof PsiComment && element.getText().equals("//XXX")) { holder.newAnnotation(HighlightSeverity.ERROR, SWEARING).range(element).create(); iDidIt(); } }