Set<VirtualFile> (@NotNull List<? extends SamDescriptor> descriptors, @NotNull Collection<? extends VirtualFile> candidateFiles, @NotNull Project project) { final GlobalSearchScope candidateFilesScope = ReadAction.compute(() -> GlobalSearchScope.filesScope(project, candidateFiles)); return JBIterable.from(descriptors).flatMap(descriptor -> ((SamDescriptor)descriptor).getMostLikelyFiles(candidateFilesScope)).toSet(); }