docs: private URI serviceUri(Channel channel, MethodDescriptor<?, ?> method) throws StatusException {
      String authority = channel.authority();
      if (authority == null) {
        throw Status.UNAUTHENTICATED.withDescription("Channel has no authority").asException();
      }
      // Always use HTTPS, by definition.
      final String scheme = "https";
      final int defaultPort = 443;
      String path = "/" + method.getServiceName();
      URI uri;
      try {
        uri = new URI(scheme, authority, path, null, null);
      } catch (URISyntaxException e) {
        throw Status.UNAUTHENTICATED.withDescription("Unable to construct service URI for auth")
            .withCause(e).asException();
      }
      // The default port must not be present. Alternative ports should be present.
      if (uri.getPort() == defaultPort) {
        uri = removePort(uri);
      }
      return uri;
    }