List<Chunk<ModuleSourceSet>> (@NotNull ModulesProvider provider) { Graph<ModuleSourceSet> graph = createModuleSourceDependenciesGraph(provider); Collection<Chunk<ModuleSourceSet>> chunks = GraphAlgorithms.getInstance().computeStronglyConnectedComponents(graph); return removeSingleElementChunks(removeDummyNodes(filterDuplicates(removeSingleElementChunks(chunks)), provider)); }