code: @NullSafe
    @SafeVarargs
    public static <T> T getLast(T... array) {
      return getLast(array, null);
    }
docs: Returns the last element (at index array.length - 1) in the {@code array}.
  
  @param <T> {@link Class} type of elements in the array.
  @param array array from which to extract the last element.
  @return the last element in the array or {@literal null} if the {@code array} is {@literal null} or empty.
  @see #getLast(Object[], Object)