public Serializable getOption(ClickHouseOption option, ClickHouseConfig defaultConfig) {
        return this.options.getOrDefault(ClickHouseChecker.nonNull(option, PARAM_OPTION),
                defaultConfig == null ? option.getEffectiveDefaultValue() : defaultConfig.getOption(option));
    }
Gets option value.

@param option        non-null option to lookup
@param defaultConfig optional default config to retrieve default value
@return option value
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseConfig.java