List<VirtualFile> (@NotNull Set<Module> modules) { OrderEnumerator sourcePathEnumerator = ProjectRootManager.getInstance(myProject).orderEntries(modules); if (!myConfiguration.OPTION_INCLUDE_LIBS) { sourcePathEnumerator = sourcePathEnumerator.withoutSdk().withoutLibraries(); } if (!myGenerationOptions.isIncludeTestSource()) { sourcePathEnumerator = sourcePathEnumerator.productionOnly(); } return sourcePathEnumerator.getSourcePathsList().getRootDirs(); }