boolean (@NotNull MavenProject project) { MavenProject prevAggregator = findAggregator(project); if (prevAggregator == null) return false; withWriteLock(() -> { removeModule(prevAggregator, project); addRootModule(project); }); return true; }