code: @NullSafe
    public static <T> Set<T> asSet(Iterable<T> iterable) {
  
      return iterable instanceof Collection
        ? new HashSet<>((Collection<T>) iterable)
        : StreamSupport.stream(nullSafeIterable(iterable).spliterator(), false).collect(Collectors.toSet());
    }
docs: Null-safe method to convert the given {@link Iterable} collection of elements into a {@link Set}.
  
  @param <T> {@link Class} type of the elements in the {@link Iterable}.
  @param iterable {@link Iterable} to convert into a {@link Set}.
  @return a {@link Set} of the elements from the {@link Iterable} object.
  @see #nullSafeIterable(Iterable)
  @see java.lang.Iterable
  @see java.util.Set