Updater (Map<MavenProject, List<MavenProject>> map) { myAggregatorToModuleMapping.clear(); myModuleToAggregatorMapping.clear(); for (Map.Entry<MavenProject, List<MavenProject>> entry : map.entrySet()) { List<MavenProject> result = new ArrayList<>(entry.getValue()); myAggregatorToModuleMapping.put(entry.getKey(), result); for (MavenProject c : result) { myModuleToAggregatorMapping.put(c, entry.getKey()); myVirtualFileToProjectMapping.put(c.getFile(), c); } } return this; }