void () { myProjectsTreeDispatcher.addListener(new MavenProjectsTree.Listener() { @Override public void pluginsResolved(@NotNull MavenProject project) { getSyncConsole().getListener(MavenServerConsoleIndicator.ResolveType.PLUGIN).finish(); } @Override public void artifactsDownloaded(@NotNull MavenProject project) { getSyncConsole().getListener(MavenServerConsoleIndicator.ResolveType.DEPENDENCY).finish(); } }); }