static <A extends AutoCloseable> bool closeAfterRemove(Cl<A> l, A a) { if (!remove_trueIfChanged(l, a)) false; close(a); true; }