List<DetectedSourceRoot> () { final List<DetectedSourceRoot> allRoots = super.getSourceRootsToScan(); return ContainerUtil.filter(allRoots, r -> !(r instanceof JavaModuleSourceRoot) || !((JavaModuleSourceRoot)r).isWithModuleInfoFile()); }