docs: @SuppressWarnings("unchecked")
      public static <T> List<T> newList(Iterable<? extends T> elements) {
          LettuceAssert.notNull(elements, "Iterable must not be null");
  
          if (elements instanceof Collection<?>) {
              return new ArrayList<>((Collection<? extends T>) elements);
          }
  
          return newList(elements.iterator());
      }