code: public static Collection<RDFNode> getListItemsOrEmpty(RDFNode node) {
          ImmutableList.Builder<RDFNode> items = ImmutableList.builder();
  
          if (isList(node)) {
              RDFList rdfList = node.as(RDFList.class);
              rdfList.iterator().forEachRemaining(items::add);
          }
  
          return items.build();
      }
docs: Tries to return the items of a list or empty if th elist is empty or not an rdf:List