if (remotePartAST instanceof Ipv4RemotePartAST) {
Ipv4RemotePartAST ipv4RemotePartAST = (Ipv4RemotePartAST) remotePartAST;
remotePartAST.addressBytes = ipv4RemotePartAST.ipv4.addressBytes;
remotePartAST.address = ipv4RemotePartAST.ipv4.address;
} else if (remotePartAST instanceof Ipv6RemotePartAST) {
Ipv6RemotePartAST ipv6RemotePartAST = (Ipv6RemotePartAST) remotePartAST;
remotePartAST.addressBytes = ipv6RemotePartAST.ipv6.addressBytes;
remotePartAST.address = ipv6RemotePartAST.ipv6.address;
} else {
throw new RuntimeException("Assertion failed");
}