void (@NotNull Module module, @NotNull ExternalSystemTaskExecutionSettings taskSettings) { if (!isGradleModule(module)) { return; } String path = ExternalSystemApiUtil.getExternalRootProjectPath(module); String settingsPath = null; String groovySettingsPath = path + "/" + GradleConstants.SETTINGS_FILE_NAME; if (FileUtil.exists(groovySettingsPath)) { settingsPath = groovySettingsPath; } String ktsSettingsPath = path + "/" + GradleConstants.KOTLIN_DSL_SETTINGS_FILE_NAME; if (FileUtil.exists(ktsSettingsPath)) { settingsPath = ktsSettingsPath; } if (settingsPath != null) { taskSettings.setScriptParameters( StringUtil.notNullize(taskSettings.getScriptParameters()) + " --settings-file \"" + settingsPath + "\""); } }