MavenConfig () { if (!useMavenConfig) return null; if (mavenConfigCache != null) return mavenConfigCache; MavenProjectsManager instance = myProject != null ? MavenProjectsManager.getInstance(myProject) : null; if (instance == null) return null; var files = MavenUtil.collectFiles(instance.getRootProjects()); if (files.isEmpty()) { files = instance.getProjectsTree().getExistingManagedFiles(); } updateFromMavenConfig(files); return mavenConfigCache; }