static Collection ai_withoutInvalidNodes(Collection l) { if (l == null) null; for (WebNode n : l) if (ai_isInvalidWeb(n.web)) { Iterator it = iterator(l); WebNode node; new L x; while ((node = it.next()) != n) x.add(node); while (it.hasNext()) { node = it.next(); if (!ai_isInvalidWeb(node.web)) x.add(node); } ret x; } ret l; } static L ai_withoutInvalidNodes(L l) { ret (L) ai_withoutInvalidNodes((Collection) l); }