@SafeVarargs public static final <T>List<T> list(T... items){
  ArrayList<T> list=new ArrayList<T>(items.length);
  for (  T item : items) {
    list.add(item);
  }
  return list;
}

@ SafeVarargs public static final < T > List < T > list ( T ... items ) { ArrayList < T > list = new ArrayList < T > ( items . length ) ; for ( T item : items ) { list . add ( item ) ; } return list ; }
varargs to mutable list .
