code: public static <E> ArrayList<E> newArrayList(Iterator<? extends E> elements) {
  		ArrayList<E> list = newArrayList();
  		while (elements.hasNext()) {
  			list.add(elements.next());
  		}
  		return list;
  	}
docs: Creates a <i>mutable</i> {@code ArrayList} instance containing the given elements.
  
  @param elements the elements that the list should contain, in order
  @return a new {@code ArrayList} containing those elements