code: 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);
      }
docs: Returns a {@link Predicate} which returns {@code true} if the given {@link InetAddress} is in the
  range of a <a href="https://tools.ietf.org/html/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}