code: @SuppressWarnings("unchecked")
    public static <T extends ModelElementInstance> Collection<T> getModelElementCollection(Collection<DomElement> view, ModelInstanceImpl model) {
      List<ModelElementInstance> resultList = new ArrayList<ModelElementInstance>();
      for (DomElement element : view) {
        resultList.add(getModelElement(element, model));
      }
      return (Collection<T>) resultList;
    }
docs: Get a collection of all model element instances in a view
  
  @param view the collection of DOM elements to find the model element instances for
  @param model the model of the elements
  @return the collection of model element instances of the view