void (@NotNull AnActionEvent e, @NotNull ThreeSide side, @NotNull List<? extends SimpleThreesideDiffChange> 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, () -> { for (SimpleThreesideDiffChange change : changes) { replaceChange(change, mySourceSide, myModifiedSide); } }); }