void (@NotNull DirectoryHistoryDialogModel model, @NotNull List<DirectoryChange> selected) { List<Difference> diffs = new ArrayList<>(); for (DirectoryChange each : selected) { diffs.add(each.getModel().getDifference()); } revert(model.createRevisionReverter(diffs)); }