@Override
  public void applyResult(@NotNull MergeResult result) {
    final CharSequence applyContent = switch (result) {
      case CANCEL -> MergeUtil.shouldRestoreOriginalContentOnCancel(this) ? myOriginalContent : null;
      case LEFT -> myLocalContent;
      case RIGHT -> throw new UnsupportedOperationException();
      case RESOLVED -> null;
    };

    if (applyContent != null) {
      WriteCommandAction.writeCommandAction(myProject).run(() -> myResultContent.getDocument().setText(applyContent));
    }

    MergeCallback.getCallback(this).applyResult(result);
  }
@Override
  public void applyResult(@NotNull MergeResult result)