@Override
        public boolean isSelected() {
          return action instanceof ToggleAction toggleAction && toggleAction.isSelected(createActionEvent());
        }
@Override
        public boolean isSelected()