@Override
    public ModalityState getModalityState() {
      ToolbarUpdater updater = myReference.get();
      if (updater == null) return null;
      return ModalityState.stateForComponent(updater.myComponent);
    }
@Override
    public ModalityState getModalityState()