void (@NotNull PsiComment comment) { if (comment.getText().contains("xxx") && !comment.getContainingFile().getText().substring(comment.getTextOffset()+2).contains("//")) { holder.registerProblem(comment, fastToolText, ProblemHighlightType.WARNING); } }