static L filterByType(Collection c, Class type) { new L l; for (O x : c) if (isInstanceX(type, x)) l.add((A) x); ret l; }