public static Predicate<InetAddress> ofCidr(InetAddress baseAddress, String subnetMask) {
        requireNonNull(baseAddress, "baseAddress");
        requireNonNull(subnetMask, "subnetMask");
        checkArgument(NetUtil.isValidIpV4Address(subnetMask),
                      "subnetMask: %s (expected: an IPv4 address string)", subnetMask);
        final int maskBits = toMaskBits(subnetMask);
        return ofCidr(baseAddress, maskBits, maskBits + 96);
    }
Returns a {@link Predicate} which returns {@code true} if the given {@link InetAddress} is in the
range of a <a href="https://datatracker.ietf.org/doc/rfc4632/">Classless Inter-domain Routing (CIDR)</a> block.

@param baseAddress the base {@link InetAddress} of a CIDR notation
@param subnetMask the subnet mask, e.g. {@code 255.255.255.0}
core/src/main/java/com/linecorp/armeria/common/util/InetAddressPredicates.java