void removeCheckCanceledHook(@NotNull CheckCanceledHook hook) {
    if (myHooks.remove(hook)) {
      updateShouldCheckCanceled();
    }
  }
void removeCheckCanceledHook(@NotNull CheckCanceledHook hook)