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