code: private static int normalisedPort(String scheme, int port) {
          if (port != DEFAULT_PORT) {
              return port;
          }
  
          if (isHttp(scheme)) {
              return DEFAULT_HTTP_PORT;
          }
  
          if (isHttps(scheme)) {
              return DEFAULT_HTTPS_PORT;
          }
  
          return UNKNOWN_PORT;
      }
docs: Returns the normalised form of the given {@code port}, based on the given {@code scheme}.
  <p>
  If the port is non-default (as given by {@link #DEFAULT_PORT}), it's immediately returned. Otherwise, for schemes HTTP
  and HTTPS it's returned 80 and 443, respectively, for any other scheme it's returned {@link #UNKNOWN_PORT}.
  
  @param scheme the (normalised) scheme of the URI where the port was defined
  @param port the port to normalise
  @return the normalised port
  @see #normalisedScheme(char[])
  @see URI#getPort()