code: @NullSafe
    public static <T> T[] nullSafeArray(T[] array) {
      return nullSafeArray(array, componentType(array));
    }
docs: Null-safe method returning the array if not null otherwise returns an empty array.
  
  @param <T> Class type of the elements in the array.
  @param array array to evaluate.
  @return the array if not null otherwise an empty array.
  @see #nullSafeArray(Object[], Class)
  @see #componentType(Object[])