void (@NotNull final AnActionEvent e) { Editor editor = e.getData(CommonDataKeys.EDITOR); final Side side = Side.fromValue(Arrays.asList(myResultEditor, myPatchEditor), editor); if (editor == null || side == null) return; final List<ApplyPatchChange> selectedChanges = getSelectedChanges(side); if (selectedChanges.isEmpty()) return; String title = VcsBundle.message("patch.apply.changes.in.patch.resolve", e.getPresentation().getText()); executeCommand(title, () -> apply(selectedChanges)); }