void (@NotNull AnActionEvent e) { DiffRequest request = Objects.requireNonNull(e.getData(DiffDataKeys.DIFF_REQUEST)); Change change = createChange(request); CreatePatchFromChangesAction.createPatch(e.getProject(), null, Collections.singletonList(change), mySilentClipboard); }