static void removeAllIC(L l, S s) { for i over l: if (eqic(l.get(i), s)) l.remove(i--); }