code: @SafeVarargs
      public static <T> List<T> newList(T... elements) {
  
          LettuceAssert.notNull(elements, "Elements must not be null");
          List<T> list = new ArrayList<>(elements.length);
          Collections.addAll(list, elements);
  
          return list;
      }
docs: Creates a new {@link ArrayList} containing all elements from {@code elements}.
  
  @param elements the elements that the list should contain, must not be {@literal null}.
  @param <T> the element type
  @return a new {@link ArrayList} containing all elements from {@code elements}.