throw new IllegalArgumentException("The validated array contains null element at index: " + i);
throw new IllegalArgumentException(message);
    public static void noNullElements(Object[] array) {        Validate.notNull(array);        for (int i = 0; i < array.length; i++) {            if (array[i] == null) {                throw new IllegalArgumentException("The validated array contains null element at index: " + i);            }        }    }