void (@NotNull ProgressIndicator indicator) { int totalJarCount = 0; HtmlBuilder messages = new HtmlBuilder(); for (Map.Entry<@NlsSafe String, GeneralCommandLine> entry : lines.entrySet()) { String grabText = entry.getKey(); indicator.setText2(grabText); try { final GrapeProcessHandler handler = new GrapeProcessHandler(entry.getValue(), module); handler.startNotify(); handler.waitFor(); int jarCount = handler.jarCount; totalJarCount += jarCount; messages.append(HtmlChunk.p().children( HtmlChunk.raw(GroovyBundle.message("grab.jar.count", grabText, jarCount)), handler.messages )); } catch (ExecutionException e) { LOG.error(e); } } final String title = GroovyBundle.message("grab.result.title", totalJarCount); NOTIFICATION_GROUP.createNotification(title, messages.toString(), NotificationType.INFORMATION).notify(project); }