code: public static List<DomElement> filterNodeListByType(NodeList nodeList, ModelInstanceImpl modelInstance, Class<?> type) {
      return filterNodeList(nodeList, new ElementByTypeListFilter(type, modelInstance));
    }
docs: Filter a {@link NodeList} retaining all elements with a specific type
  
  
  @param nodeList  the {@link NodeList} to filter
  @param modelInstance  the model instance
  @param type  the type class to filter for
  @return the list of all Elements which match the filter