static void removeIgnoreCase(L l, S s) { int i = indexOfIgnoreCase(l, s); if (i >= 0) l.remove(i); }