code: public static void notEmpty(@Nullable final Object[] array,
        final Supplier<String> messageSupplier) {
      if (ObjectUtils.isEmpty(array)) {
        throw new IllegalArgumentException(Assert.nullSafeGet(messageSupplier));
      }
    }
docs: Assert that an array contains elements; that is, it must not be {@code null} and must contain
  at least one element.
  
  <pre class="code">
  Assert.notEmpty(array, () -&gt; "The " + arrayType + " array must contain elements");
  </pre>
  
  @param array the array to check
  @param messageSupplier a supplier for the exception message to use if the assertion fails
  @throws IllegalArgumentException if the object array is {@code null} or contains no elements
  @since 5.0