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