docs: protected JcrNodeType findTypeInMapOrList( Name typeName,
                                                 Collection<JcrNodeType> pendingList ) {
          for (JcrNodeType pendingNodeType : pendingList) {
              if (pendingNodeType.getInternalName().equals(typeName)) {
                  return pendingNodeType;
              }
          }
  
          return nodeTypes.get(typeName);
      }