docs: public static <T> Set<T> newHashSet(Collection<? extends T> elements) {
          LettuceAssert.notNull(elements, "Collection must not be null");
  
          HashSet<T> set = new HashSet<>(elements.size());
          set.addAll(elements);
          return set;
      }