boolean (@NotNull Project project, @NotNull GlobalSearchScope scope, @NotNull Processor<? super VirtualFile> processor, TextIndexQuery @NotNull ... textIndexQueries) { if (ContainerUtil.find(textIndexQueries, query -> !query.isEmpty()) == null) return true; if (LOG.isTraceEnabled()) { List<String> words = ContainerUtil.map(textIndexQueries, q -> StringUtil.join(q.getInitialWords(), " ")); LOG.trace("searching for words " + words + " in " + scope); } if (FileBasedIndex.isIndexAccessDuringDumbModeEnabled()) { if (ApplicationManager.getApplication().isReadAccessAllowed() && (!DumbService.isDumb(project) || FileBasedIndex.getInstance().getCurrentDumbModeAccessType() != null)) { return computeQueries(scope, processor, textIndexQueries); } return ReadAction.compute(() -> DumbModeAccessType.RAW_INDEX_DATA_ACCEPTABLE.ignoreDumbMode(() -> computeQueries(scope, processor, textIndexQueries))); } return DumbService.getInstance(project).runReadActionInSmartMode(() -> computeQueries(scope, processor, textIndexQueries)); }