void (@NotNull String mainModuleName) { boolean isDelegatedBuild = GradleProjectSettings.isDelegatedBuildEnabled(myProject, getProjectPath()); String[] excludes = isDelegatedBuild ? new String[]{".gradle", "build"} : new String[]{".gradle", "build", "out"}; assertExcludes(mainModuleName, excludes); final String mainSourceSetModuleName = mainModuleName + ".main"; assertContentRoots(mainSourceSetModuleName, getProjectPath() + "/src/main"); assertSources(mainSourceSetModuleName, "java"); assertResources(mainSourceSetModuleName, "resources"); final String testSourceSetModuleName = mainModuleName + ".test"; assertContentRoots(testSourceSetModuleName, getProjectPath() + "/src/test"); assertTestSources(testSourceSetModuleName, "java"); assertTestResources(testSourceSetModuleName, "resources"); }