public static final <T> T nonNull(T value, String name) {
        if (value == null) {
            throw newException("Non-null %s is required", name);
        }

        return value;
    }
Checks if the given object is NOT {@code null} and throws a customized
{@link IllegalArgumentException} if it is.

@param <T>   type of the object
@param value the object
@param name  name of the object
@return the exact same object
@throws IllegalArgumentException if the object is null
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseChecker.java