import java.util.ArrayList;
import java.util.List;
public class Util{
public static List toList(Iterable iterable) {
if(iterable instanceof List) {
return (List) iterable;
}
ArrayList list = new ArrayList();
if(iterable != null) {
for(E e: iterable) {
list.add(e);
}
}
return list;
}
}