boolean (@NotNull PsiElement scope, int @NotNull [] offsetsInScope, @NotNull StringSearcher searcher) { ProgressManager.checkCanceled(); if (wrapped instanceof RequestResultProcessor.BulkResultProcessor) { return ((RequestResultProcessor.BulkResultProcessor)wrapped).processTextOccurrences(scope, offsetsInScope, consumer); } return LowLevelSearchUtil.processElementsAtOffsets(scope, searcher, !ignoreInjectedPsi, getOrCreateIndicator(), offsetsInScope, (element, offsetInElement) -> { if (ignoreInjectedPsi && element instanceof PsiLanguageInjectionHost) return true; return wrapped.processTextOccurrence(element, offsetInElement, consumer); }); }