docs: final Collection<JcrNodeType> declaredSubtypesFor( JcrNodeType nodeType ) {
          CheckArg.isNotNull(nodeType, "nodeType");
          String nodeTypeName = nodeType.getName();
          List<JcrNodeType> subtypes = new LinkedList<JcrNodeType>();
          for (JcrNodeType type : this.nodeTypes.values()) {
              if (Arrays.asList(type.getDeclaredSupertypeNames()).contains(nodeTypeName)) {
                  subtypes.add(type);
              }
          }
          return subtypes;
      }