@Override
    public void actionPerformed(@NotNull final AnActionEvent e) {
      Editor editor = e.getData(CommonDataKeys.EDITOR);
      final ThreeSide side = getEditorSide(editor);
      if (editor == null || side == null) return;

      final List<TextMergeChange> selectedChanges = getSelectedChanges(side);
      if (selectedChanges.isEmpty()) return;

      String title = DiffBundle.message("message.do.in.merge.command", e.getPresentation().getText());
      executeMergeCommand(title, selectedChanges.size() > 1, selectedChanges, () -> apply(side, selectedChanges));
    }
@Override
    public void actionPerformed(@NotNull final AnActionEvent e)