public static void requireNonNulls(Object o0, Object o1, Object o2, Object o3) {
        if (o0 == null) {
            throw new NullPointerException(FIRST_ARG_IS_NULL);
        }
        if (o1 == null) {
            throw new NullPointerException(SECOND_ARG_IS_NULL);
        }
        if (o2 == null) {
            throw new NullPointerException(THIRD_ARG_IS_NULL);
        }
        if (o3 == null) {
            throw new NullPointerException(FOURTH_ARG_IS_NULL);
        }
    }
Checks if the provided elements all are non null. If a null is detected a
NullPointerException is thrown.

@param o0 object to check
@param o1 object to check
@param o2 object to check
@param o3 object to check
@throws NullPointerException if at least one of the elements are null
common-parent/invariant/src/main/java/com/speedment/common/invariant/NullUtil.java