@Override
    protected void restoreChangeState(@NotNull TextMergeChange.State state) {
      super.restoreChangeState(state);
      TextMergeChange change = myAllMergeChanges.get(state.myIndex);

      boolean wasResolved = change.isResolved();
      if (change.isResolvedWithAI()) {
        myAggregator.wasUndoneAfterAI(change.getIndex());
      }
      change.restoreState(state);
      if (wasResolved != change.isResolved()) onChangeResolved(change);
    }
@Override
    protected void restoreChangeState(@NotNull TextMergeChange.State state)