Duplication: in `AbstractSet`, significant code reuse/simplification enabled by `for_each` and `addIf` methods.