code: @SuppressWarnings("unchecked")
  	@Contract(pure = true)
  	@NotNull
  	public static <T> Promise<T[]> toArray(@NotNull Class<T> type) {
  		return Promise.of((T[]) Array.newInstance(type, 0));
  	}
docs: Returns an array of provided {@code type} and length 0
  wrapped in {@code Promise}.