static LinkedList asLinkedList(Iterable s) { if (s cast LinkedList) ret s; new LinkedList l; if (s != null) for (A a : s) l.add(a); ret l; }