void (@NotNull AnActionEvent e) { StringBuilder buf = new StringBuilder(); buf.append("Full thread dump").append("\n\n"); for (ThreadState state : myThreadDump) { buf.append(state.getStackTrace()).append("\n\n"); } CopyPasteManager.getInstance().setContents(new StringSelection(buf.toString())); GROUP.createNotification(JavaBundle.message("notification.text.full.thread.dump.was.successfully.copied.to.clipboard"), MessageType.INFO).notify(myProject); }