if this has side effects, I think you want to rename to `clearReferenceSet` . . . java.util likes `empty` to ask if the size is 0 and `clear` to cause the size to become 0.