void (@NotNull AnActionEvent e) { VcsLogUsageTriggerCollector.triggerUsage(e, this); Project project = e.getRequiredData(CommonDataKeys.PROJECT); VcsLogCommitSelection selection = e.getRequiredData(VcsLogDataKeys.VCS_LOG_COMMIT_SELECTION); String commitMessage = e.getRequiredData(VcsDataKeys.PRESET_COMMIT_MESSAGE); selection.requestFullDetails(detailsList -> { List<Change> changes = VcsLogUtil.collectChanges(detailsList); CreatePatchFromChangesAction.createPatch(project, commitMessage, changes, mySilentClipboard); }); }