List<File> (@NotNull Project project, @NotNull GradleProjectSettings projectSettings) { String gradleUserHome = ObjectUtils.chooseNotNull( GradleSettings.getInstance(project).getServiceDirectoryPath(), new BuildLayoutParameters().getGradleUserHomeDir().getPath() ); String externalProjectPath = projectSettings.getExternalProjectPath(); List<File> files = new SmartList<>(); files.add(new File(gradleUserHome, "gradle.properties")); files.add(new File(gradleUserHome, "init.gradle")); files.add(new File(externalProjectPath, "gradle.properties")); return files; }