void (boolean updateTargetFoldersOnly) { if (!updateTargetFoldersOnly) { if (!myImportingSettings.isKeepSourceFolders()) { myModel.clearSourceFolders(); } configSourceFolders(); configOutputFolders(); } configGeneratedFolders(); if (!updateTargetFoldersOnly) { if (!FileUtil.namesEqual("pom", myMavenProject.getFile().getNameWithoutExtension()) && MavenUtil.streamPomFiles(myModel.getModule().getProject(), myMavenProject.getDirectoryFile()).skip(1).findAny().isPresent()) { generateNewContentRoots(false); } else { generateNewContentRoots(true); } } configExcludedFolders(); }