public static @NotNull List<Object> copyToList(@NotNull Object array) {
    return copy(checkNotNull(array), newArrayList());
  }
public static @NotNull List<Object> copyToList(@NotNull Object array) {
    return copy(checkNotNull(array), newArrayList());
  }
public static @ NotNull List < Object > copyToList ( @ NotNull Object array ) { return copy ( checkNotNull ( array ) , newArrayList ( ) ) ; }
Copies the contents of the given array into a list.

@param array the array to copy.
@return a list containing the contents of the array.
@throws IllegalArgumentException if the given object is not an array.
@since 1.3.
Copies the contents of the given array into a list .