List<DetectedSourceRoot> (@NotNull ModuleInsight insight, @NotNull ProjectFromSourcesBuilder builder) { final List<DetectedSourceRoot> sourceRoots = new ArrayList<>(); for (ProjectStructureDetector detector : ProjectStructureDetector.EP_NAME.getExtensions()) { for (DetectedProjectRoot root : builder.getProjectRoots(detector)) { if (insight.isApplicableRoot(root)) { sourceRoots.add((DetectedSourceRoot)root); } } } return sourceRoots; }