void (@NotNull AnActionEvent e, @NotNull Side side, @NotNull List<? extends SimpleDiffChange> changes) { if (!isEditable(myModifiedSide)) return; String title = DiffBundle.message("message.use.selected.changes.command", e.getPresentation().getText()); DiffUtil.executeWriteCommand(getEditor(myModifiedSide).getDocument(), e.getProject(), title, () -> apply(changes)); }