static L removeAndReturnCollection(L l, int i) { remove(l, i); ret l; } static > B removeAndReturnCollection(B l, A a) { remove(l, a); ret l; }