There can only be one settings.gradle file per project, this extra one is confusing intellij (thinking private is a root project) and block the usage of features such a dependency analysis on any private modules.
ext.isCiServer = System.getenv().containsKey("CIRRUS_CI")
// use Settings.getRootDir() so that it doesn't matter which directory you are executing from
-File extraSettings = new File(rootDir, 'private/settings.gradle')
+File extraSettings = new File(rootDir, 'private/private-settings.gradle')
if (extraSettings.exists()) {
apply from: extraSettings
}