List<File> (@NotNull Project project, @NotNull GradleProjectSettings projectSettings) { String externalProjectPath = projectSettings.getExternalProjectPath(); List<File> files = new SmartList<>(); var node = ExternalSystemApiUtil.findProjectNode(project, GradleConstants.SYSTEM_ID, externalProjectPath); if (node != null) { var versionCatalog = ExternalSystemApiUtil.find(node, BuildScriptClasspathData.VERSION_CATALOGS); if (versionCatalog != null) { for (String catalogFile : versionCatalog.getData().getCatalogsLocations().values()) { files.add(new File(catalogFile)); } } } return files; }