static Cl indicesOf_collectionOfHasIndex(L l, A a) { if (l == null) null; ifclass IContentsIndexedList2 if (l cast IContentsIndexedList2) ret l.indicesOf_treeSetOfHasIndex(a); endif new L x; int n = l(l); for (int i = 0; i < n; i++) if (eq(l.get(i), a)) x.add(HasIndex(i)); ret x; }