code: @SuppressWarnings("unchecked")
      public static <T extends Tuple> T create(Iterable<?> objects, int limit) {
          List<Object> list = new ArrayList<>();
          int index = 0;
          for (Object object : objects) {
              if (limit != -1 && ++index > limit) {
                  break;
              }
              list.add(object);
          }
          return create(list);
      }
docs: Builds a tuple from an {@link Iterable}, optionally limiting the number of items.
  
  @param objects the iterable of objects (size must be less or equal than 10).
  @param limit   the item number limit (-1 means no limit).
  @param <T>     the tuple type.
  @return the constructed tuple.