boolean (@NotNull FileType fileType, @NotNull Processor<? super VirtualFile> processor, @NotNull GlobalSearchScope scope) { @NotNull Iterator<VirtualFile> files = FileBasedIndex.getInstance().getContainingFilesIterator(NAME, fileType, scope); while (files.hasNext()) { VirtualFile file = files.next(); if (!processor.process(file)) { return false; } } return true; }