Double-checking seems like overkill here... in the very worst case where you hit this race condition, the collection type is a Set anyways.