void (Task task, Project project) { ChooseStacktraceDialog stacktraceDialog = new ChooseStacktraceDialog(project, task); if (stacktraceDialog.showAndGet() && stacktraceDialog.getTraces().length > 0) { Comment[] comments = stacktraceDialog.getTraces(); for (Comment comment : comments) { AnalyzeStacktraceUtil.addConsole(project, null, task.getId(), comment.getText()); //NON-NLS } } }