public List<Inet4Address> getAddresses() throws UnknownHostException {
            List<Inet4Address> addresses = new LinkedList<>();
            for (byte[] bytes : this.addresses) {
                InetAddress address = InetAddress.getByAddress(bytes);
                if (address instanceof Inet4Address) {
                    addresses.add((Inet4Address) address);
                }
            }
            return addresses;
        }
Implements common functionality for SVCB and HTTPS records
src/main/java/core/org/xbill/DNS/SVCBBase.java