void (@NotNull AnActionEvent e) { FileDocumentManager.getInstance().saveAllDocuments(); Project project = e.getRequiredData(CommonDataKeys.PROJECT); VcsLogCommitSelection selection = e.getRequiredData(VcsLogDataKeys.VCS_LOG_COMMIT_SELECTION); VcsCherryPickManager.getInstance(project).cherryPick(selection); }