Copy Pasta (from `java.util.HashSet`).