public boolean contains(final String name) {
    // InetAddresses.forString() throws "IllegalArgumentException" for anything that is not an IP address
    return contains(InetAddresses.forString(name));
  }
@Test
  void testContainsMismatchedAddressType() {
    assertFalse(new InetAddressRange("192.168.0.0/24").contains("2001:db8:0:0:0:0:0:0"));
    assertFalse(new InetAddressRange("2001:db8::/48").contains("192.168.0.1"));
  }