protected List<Item> toItems(List<Model> models){
  if (models == null) {
    return Collections.emptyList();
  }
  int size=models.size();
  List<Item> items=new ArrayList<>(size);
  for (int i=0; i < size; i++) {
    items.add(toItem(models.get(i)));
  }
  return items;
}

protected List < Item > toItems ( List < Model > models ) { if ( models == null ) { return Collections . emptyList ( ) ; } int size = models . size ( ) ; List < Item > items = new ArrayList < > ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { items . add ( toItem ( models . get ( i ) ) ) ; } return items ; }
helper to get a list of item from a list o model
