boolean (@NotNull Collection<? extends AllKeysQuery<?, ?>> queries, @NotNull GlobalSearchScope filter, Processor<? super VirtualFile> processor, IdFilter filesSet) { IntSet set = null; if (filter instanceof GlobalSearchScope.FilesScope) { VirtualFileEnumeration hint = VirtualFileEnumeration.extract(filter); set = hint != null ? new IntOpenHashSet(hint.asArray()) : IntSet.of(); } //noinspection rawtypes for (AllKeysQuery query : queries) { @SuppressWarnings("unchecked") IntSet queryResult = collectFileIdsContainingAllKeys(query.getIndexId(), query.getDataKeys(), filter, query.getValueChecker(), filesSet, set); if (queryResult == null) return false; if (queryResult.isEmpty()) return true; if (set == null) { set = new IntOpenHashSet(queryResult); } else { set = queryResult; } } if (set == null || !processVirtualFiles(set, filter, processor)) { return false; } return true; }