boolean (@NotNull String identifier, @NotNull SearchScope searchScope, @NotNull Processor<? super PsiElement> processor) { TextOccurenceProcessor occurrenceProcessor = (element, offsetInElement) -> { if (CommentUtilCore.isCommentTextElement(element) && element.findReferenceAt(offsetInElement) == null) { return processor.process(element); } return true; }; return processElementsWithWord(occurrenceProcessor, searchScope, identifier, UsageSearchContext.IN_COMMENTS, true); }