boolean (@NotNull PomTarget pomTarget, @NotNull FindUsagesOptions options, @NotNull Processor<? super UsageInfo> processor) { for (AliasingPsiTargetMapper aliasingPsiTargetMapper : AliasingPsiTargetMapper.EP_NAME.getExtensionList()) { for (AliasingPsiTarget psiTarget : aliasingPsiTargetMapper.getTargets(pomTarget)) { boolean success = ReferencesSearch .search(new ReferencesSearch.SearchParameters(ReadAction.compute(() -> PomService.convertToPsi(psiTarget)), options.searchScope, false, options.fastTrack)) .forEach(new ReadActionProcessor<>() { @Override public boolean processInReadAction(PsiReference reference) { return addResult(reference, options, processor); } }); if (!success) return false; } } return true; }