Collection<File> (boolean includeTests) { final List<File> result = new ArrayList<>(); for (Element contentRoot : getContentRootElements()) { for (Element sourceFolder : JDOMUtil.getChildren(contentRoot, JpsModuleRootModelSerializer.SOURCE_FOLDER_TAG)) { boolean isTestFolder = Boolean.parseBoolean(sourceFolder.getAttributeValue(JpsModuleRootModelSerializer.IS_TEST_SOURCE_ATTRIBUTE)); if (includeTests || !isTestFolder) { result.add(getFile(sourceFolder.getAttributeValue(JpsModuleRootModelSerializer.URL_ATTRIBUTE))); } } } return result; }