public @Nullable AnAction getComponentAction() {
    Object component = getComponent();
    if (component instanceof Separator o) {
      return o;
    }
    if (component instanceof String o) {
      return ActionManager.getInstance().getAction(o);
    }
    if (component instanceof Group o) {
      String id = o.getId();
      if (StringUtil.isEmpty(id)) {
        return o.constructActionGroup(true);
      }
      return ActionManager.getInstance().getAction(id);
    }
    return null;
  }
public @Nullable AnAction getComponentAction()