static LinkedList cloneLinkedList(Iterable l) { ret l instanceof Collection ? cloneLinkedList((Collection) l) : asLinkedList(l); } static LinkedList cloneLinkedList(Collection l) { if (l == null) ret new LinkedList; synchronized(collectionMutex(l)) { ret new LinkedList(l); } }