LOXI-55: IPAddressWithMask should have a contains that can take any IPAddress

Reviewer: @gregor-bsn @andi-bigswitch
since you're using Preconditions.checkNotNull above, it would make sense to use it here too (also in the IPv6 version)