code: public static void noNullElements(@Nullable final Object[] array,
        final Supplier<String> messageSupplier) {
      if (array != null) {
        for (final Object element : array) {
          if (element == null) {
            throw new IllegalArgumentException(Assert.nullSafeGet(messageSupplier));
          }
        }
      }
    }
docs: Assert that an array contains no {@code null} elements.
  <p>
  Note: Does not complain if the array is empty!
  
  <pre class="code">
  Assert.noNullElements(array, () -&gt; "The " + arrayType + " array must contain non-null 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 contains a {@code null} element
  @since 5.0