public static <T> T notNull(T o, String message) {
        if (o == null) {
            throw new JGivenWrongUsageException(message);
        }
        return o;
    }
This util is used for checking inputs of API methods
jgiven-core/src/main/java/com/tngtech/jgiven/impl/util/ApiUtil.java