public static <T> T[] containsNoNullElements(T[] array, Supplier<String> messageProvider) {
    if (array != null) {
      Arrays.stream(array).forEach(object -> notNull(object, messageProvider));
    }
    return array;
  }
Assert that the supplied array contains no {@code null} elements.
<p>
This method does NOT check if the supplied
array is {@code null} or <em>empty</em>.

@param array           the array to check
@param messageProvider violation message
@return the supplied array as a convenience
@see #notNull(Object, Supplier)
spock-core/src/main/java/org/spockframework/util/Checks.java