code: public static Stream<IRI> ldpResourceTypes(final IRI ixnModel) {
          final Stream.Builder<IRI> supertypes = Stream.builder();
          if (ixnModel != null) {
              LOGGER.debug("Finding types that subsume {}", ixnModel.getIRIString());
              supertypes.accept(ixnModel);
              final IRI superClass = LDP.getSuperclassOf(ixnModel);
              LOGGER.debug("... including {}", superClass);
              ldpResourceTypes(superClass).forEach(supertypes::accept);
          }
          return supertypes.build();
      }
docs: Get all of the LDP resource (super) types for the given LDP interaction model.
  
  @param ixnModel the interaction model
  @return a stream of types