JComponent () { JComponent result = super.createSouthPanel(); // Registering the copy action only on the buttons panel, because it conflicts with copyable labels in the center panel new DumbAwareAction() { @Override public void actionPerformed(@NotNull AnActionEvent e) { copyAboutInfoToClipboard(); close(OK_EXIT_CODE); } }.registerCustomShortcutSet(CustomShortcutSet.fromString("meta C", "control C"), result, getDisposable()); return result; }