boolean addAction(@NotNull AnAction action, @Nullable ProjectType projectType) {
    if (action instanceof ActionStub actionStub) {
      action = ActionManagerImplKt.convertStub(actionStub);
      if (action == null) {
        return true;
      }

      projectType = actionStub.getProjectType();
    }

    if (myActions.containsKey(projectType)) {
      return false;
    }
    myActions.put(projectType, action);
    return true;
  }
boolean addAction(@NotNull AnAction action, @Nullable ProjectType projectType)