public @Nullable Object getComponent() {
    if (myComponent != null || myComponentType == TYPE_NONE) return myComponent;
    switch (myComponentType) {
      case TYPE_SEPARATOR -> myComponent = Separator.getInstance();
      case TYPE_ACTION -> myComponent = myComponentId;
      case TYPE_GROUP, TYPE_POPUP_GROUP -> {
        Objects.requireNonNull(myComponentId);
        AnAction action = ActionManager.getInstance().getActionOrStub(myComponentId);
        //noinspection HardCodedStringLiteral
        Group group = action instanceof ActionGroup o
                      ? ActionsTreeUtil.createGroup(o, true, null)
                      : new Group(myComponentId, myComponentId);
        group.setForceShowAsPopup(myComponentType == TYPE_POPUP_GROUP);
        myComponent = group;
      }
    }
    return myComponent;
  }
public @Nullable Object getComponent()