Stream<SourceFolder> (ModuleRootManager rootManager) { return Arrays.stream(rootManager.getContentEntries()) .flatMap(entry -> Arrays.stream(entry.getSourceFolders())) .filter(SourceFolder::isTestSource); }