@Override
  public void endBeforeCommitChecks(@NotNull CommitChecksResult result) {
    if (result.getShouldCommit()) return;
    if (result.getShouldCloseWindow()) {
      doCancelAction();
    }
    else {
      restartUpdate();
    }
  }
@Override
  public void endBeforeCommitChecks(@NotNull CommitChecksResult result)