public static boolean check(String version, String range) {
        return ClickHouseVersion.of(version).check(range);
    }
Checks if the version is valid according to the given maven-like version
range. For examples:
<ul>
<li><code>21.3</code> 21.3.x.x, short version of [21.3,21.4)</li>
<li><code>[21.3,21.4)</code> 21.3.x.x (included) to 21.4.x.x (not
included)</li>
<li><code>[21.3,21.4]</code> 21.3.x.x to 21.4.x.x (both included)</li>
<li><code>[21.3,)</code> 21.3.x.x or higher</li>
<li><code>(,21.3],[21.8,)</code> to 21.3.x.x (included) and 21.8.x.x or
higher</li>
</ul>

@param version version, null is treated as {@code 0.0.0.0}
@param range   maven-like version range, null or empty means always invalid
@return true if the version is valid; false otherwise
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseVersion.java