Use newConcurrentHashSet and newIdentityHashSet