code: public static void noNullElements(Object[] array, String message) {
          if (array != null) {
              for (Object element : array) {
                  if (element == null) {
                      throw new IllegalArgumentException(message);
                  }
              }
          }
      }
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, "The array must contain non-null elements");</pre>
  
  @param array the array to check.
  @param message the exception message to use if the assertion fails.
  
  @throws IllegalArgumentException if the object array contains a {@code null} element.