docs: public static <T> List<T> newList(Iterator<? extends T> elements) {
          LettuceAssert.notNull(elements, "Iterator must not be null");
  
          List<T> objects = new ArrayList<>();
          while (elements.hasNext()) {
              objects.add(elements.next());
          }
  
          return objects;
      }