code: @SuppressWarnings("unchecked")
  	@Contract(pure = true)
  	@NotNull
  	public static <T> Promise<T[]> toArray(@NotNull Class<T> type, @NotNull Promise<? extends T> promise1, @NotNull Promise<? extends T> promise2) {
  		return promise1.combine(promise2, (value1, value2) -> {
  			@NotNull T[] array = (T[]) Array.newInstance(type, 2);
  			array[0] = value1;
  			array[1] = value2;
  			return array;
  		});
  	}
docs: Returns an array with {@code promise1} and {@code promise2} results.