OriginClassifier (@NotNull Project project, @NotNull Collection<VirtualFile> files) { return ReadAction.nonBlocking(() -> { OriginClassifier classifier = new OriginClassifier(project); WorkspaceFileIndexEx index = (WorkspaceFileIndexEx)WorkspaceFileIndex.getInstance(project); for (VirtualFile file : files) { classifier.doClassify(index, file); } return classifier; }).executeSynchronously(); }