@Override
    public void run() {
      ToolbarUpdater updater = myUpdaterRef.get();
      JComponent component = updater == null ? null : updater.myComponent;
      if (component == null ||
          !ApplicationManager.getApplication().isUnitTestMode() &&
          !UIUtil.isShowing(component) && (!component.isDisplayable() || !myIncludeInvisible)) {
        return;
      }
      try {
        updater.myInUpdate = true;
        updater.updateActionsImpl(myForced);
      }
      finally {
        updater.myInUpdate = false;
      }
    }
@Override
    public void run()