MavenGeneralSettings () { if (getParameters().myGeneralSettingsCache == null) { ApplicationManager.getApplication().runReadAction(() -> { getParameters().myGeneralSettingsCache = getDirectProjectsSettings().getGeneralSettings().clone(); List<VirtualFile> rootFiles = getParameters().myFiles; if (rootFiles == null) { rootFiles = Collections.singletonList(LocalFileSystem.getInstance().findFileByNioFile(getRootPath())); } getParameters().myGeneralSettingsCache.updateFromMavenConfig(rootFiles); }); } return getParameters().myGeneralSettingsCache; }