void (@NotNull AnActionEvent e) { List<ApplyPatchChange> changes = myModelChanges; if (changes.isEmpty()) return; executeCommand(DiffBundle.message("merge.dialog.apply.non.conflicted.changes.command"), () -> { for (int i = changes.size() - 1; i >= 0; i--) { ApplyPatchChange change = changes.get(i); switch (change.getStatus()) { case ALREADY_APPLIED -> markChangeResolved(change); case EXACTLY_APPLIED -> replaceChange(change); case NOT_APPLIED -> { } } } }); }