void restartAutoUpdate(final boolean state) {
    boolean enabled = state && myToolWindow != null && !myAutoUpdateMuted;
    if (enabled) {
      if (myAutoUpdateRequest == null) {
        myAutoUpdateRequest = () -> updateComponent(false, true);

        UIUtil.invokeLaterIfNeeded(() -> IdeEventQueue.getInstance().addIdleListener(myAutoUpdateRequest, 500));
      }
    }
    else {
      if (myAutoUpdateRequest != null) {
        IdeEventQueue.getInstance().removeIdleListener(myAutoUpdateRequest);
        myAutoUpdateRequest = null;
      }
    }
  }
void restartAutoUpdate(final boolean state)