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

      boolean wasResolved = change.isResolved();
      change.restoreState(state);
      if (wasResolved != change.isResolved()) onChangeResolved();
    }
@Override
    protected void restoreChangeState(@NotNull ApplyPatchChange.State state)