@Deprecated
  @ApiStatus.ScheduledForRemoval
  @Contract(mutates = "param2")
  public static <T> T @NotNull [] toArray(@NotNull List<T> collection, T @NotNull [] array) {
    return collection.toArray(array);
  }
@Deprecated
  @ApiStatus.ScheduledForRemoval
  @Contract(mutates = "param2")
  public static <T> T @NotNull [] toArray(@NotNull List<T> collection, T @NotNull [] array)