docs: final boolean allowsChildWithType( JcrNodeType childPrimaryType ) {
          if (childPrimaryType == null) {
              // The definition must have a default primary type ...
              if (defaultPrimaryTypeName != null) {
                  return true;
              }
              return false;
          }
          // The supplied primary type must be or extend all of the required primary types ...
          for (Name requiredPrimaryTypeName : requiredPrimaryTypeNameSet) {
              if (!childPrimaryType.isNodeType(requiredPrimaryTypeName)) return false;
          }
          return true;
      }