public static <T> T[] requireNonNullElements(T[] array) {
        requireNonNull(array, "The provided array " + IS_NULL + ".");
        int len = array.length;
        for (int i = 0; i < len; i++) {
            if (array[i] == null) {
                throw new NullPointerException("Item " + i + " in the array " + Arrays.toString(array) + " " + IS_NULL);
            }
        }
        return array;
    }
Checks if this array is non null and also that all members are non-null.
If a null is detected a NullPointerException is thrown.

@param <T> array type
@param array to check
@return the same array instance as provided
@throws NullPointerException if a null is found in the array or if the
array itself is null
common-parent/invariant/src/main/java/com/speedment/common/invariant/NullUtil.java