MavenProjectsTreeUpdateResult (boolean force, MavenGeneralSettings generalSettings, ProgressIndicator process) { List<VirtualFile> managedFiles = getExistingManagedFiles(); MavenExplicitProfiles explicitProfiles = getExplicitProfiles(); MavenProjectReader projectReader = new MavenProjectReader(myProject); var updated = update(managedFiles, true, force, explicitProfiles, projectReader, generalSettings, process); Collection<VirtualFile> obsoleteFiles = ContainerUtil.subtract(getRootProjectsFiles(), managedFiles); var deleted = delete(projectReader, obsoleteFiles, explicitProfiles, generalSettings, process); return updated.plus(deleted); }