presto-spi/src/main/java/io/prestosql/spi/HostAddress.java/HostAddress/getPortOrDefault
class HostAddress:    public int getPortOrDefault(int defaultPort)
    {
        return hasPort() ? port : defaultPort;
    }