void (boolean test) { if (myImportingSettings.isUseMavenOutput()) { if (test) { myModel.useModuleOutput("", myMavenProject.getTestOutputDirectory()); } else { myModel.useModuleOutput(myMavenProject.getOutputDirectory(), ""); } } String buildDirPath = myModel.toPath(myMavenProject.getBuildDirectory()).getPath(); String outputDirPath = myModel.toPath(myMavenProject.getOutputDirectory()).getPath(); if (test) { String testOutputDirPath = myModel.toPath(myMavenProject.getTestOutputDirectory()).getPath(); if ((!VfsUtilCore.isEqualOrAncestor(buildDirPath, testOutputDirPath))) { myModel.addExcludedFolder(myMavenProject.getTestOutputDirectory()); } } else { if ((!VfsUtilCore.isEqualOrAncestor(buildDirPath, outputDirPath))) { myModel.addExcludedFolder(myMavenProject.getOutputDirectory()); } } }