public static ClickHouseNestedValue of(ClickHouseValue ref, List<ClickHouseColumn> columns, Object[][] values) {
        return ref instanceof ClickHouseNestedValue
                ? ((ClickHouseNestedValue) ref).set(values != null ? values : ClickHouseValues.EMPTY_OBJECT_ARRAY2)
                : new ClickHouseNestedValue(columns, values);
    }
Update value of the given object or create a new instance if {@code ref} is
null.

@param ref     object to update, could be null
@param columns columns
@param values  values
@return same object as {@code ref} or a new instance if it's null
clickhouse-data/src/main/java/com/clickhouse/data/value/ClickHouseNestedValue.java