public static String nonEmpty(String value, String name) {
        if (isNullOrEmpty(value)) {
            throw newException("%s cannot be null or empty string", name);
        }

        return value;
    }
Checks if the given string is neither {@code null} nor empty and throws a
customized {@link IllegalArgumentException} if it is.

@param value the string to check
@param name  name of the string
@return the exact same string
@throws IllegalArgumentException if the string is null or empty
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseChecker.java