static L filterByDynamicType(Collection c, S type) { new L l; for (A x : c) if (eq(dynamicClassName(x), type)) l.add(x); ret l; }