Collection<IndexableIteratorBuilder> () { Map<EntityReference<?>, WorkspaceEntity> referenceMap = ContainerUtil.map2MapNotNull(references, ref -> Pair.create(ref, ref.resolve(entityStorage))); Map<Class<WorkspaceEntity>, CustomizingIndexingPresentationContributor<?>> customizingContributorsMap = ContainerUtil.map2MapNotNull(WorkspaceFileIndexImpl.Companion.getEP_NAME().getExtensionList(), contributor -> { if (contributor instanceof CustomizingIndexingPresentationContributor<?>) { return Pair.create((Class<WorkspaceEntity>)contributor.getEntityClass(), (CustomizingIndexingPresentationContributor<?>)contributor); } return null; }); List<IndexableIteratorBuilder> result = new ArrayList<>(); for (ModuleRootData<?> data : filesFromModulesContent) { result.addAll(data.createBuilders(referenceMap, customizingContributorsMap)); } for (ContentRootData<?> data : filesFromContent) { result.addAll(data.createBuilders(referenceMap, customizingContributorsMap)); } for (Map.Entry<LibraryId, Collection<VirtualFile>> entry : sourceFilesFromLibraries.entrySet()) { result.addAll(IndexableIteratorBuilders.INSTANCE. forLibraryEntity(entry.getKey(), true, Collections.emptyList(), entry.getValue())); } for (Map.Entry<LibraryId, Collection<VirtualFile>> entry : classFilesFromLibraries.entrySet()) { result.addAll(IndexableIteratorBuilders.INSTANCE. forLibraryEntity(entry.getKey(), true, entry.getValue(), Collections.emptyList())); } for (Map.Entry<Sdk, Collection<VirtualFile>> entry : filesFromSdks.entrySet()) { result.addAll(IndexableIteratorBuilders.INSTANCE.forSdk(entry.getKey(), entry.getValue())); } for (ExternalRootData<?> data : filesFromExternal) { result.addAll(data.createBuilders(referenceMap, customizingContributorsMap)); } for (CustomKindRootData<?> data : filesFromCustomKind) { result.addAll(data.createBuilders(referenceMap, customizingContributorsMap)); } return result; }