void (@NotNull AnActionEvent e) { String[] subjects = e.getData(VcsDataKeys.VCS_COMMIT_SUBJECTS); if (subjects == null || subjects.length == 0) return; CopyPasteManager.getInstance().setContents(new StringSelection(StringUtil.join(subjects, "\n"))); }