docs: private static StatusRuntimeException toStatusRuntimeException(Throwable t) {
      Throwable cause = checkNotNull(t, "t");
      while (cause != null) {
        // If we have an embedded status, use it and replace the cause
        if (cause instanceof StatusException) {
          StatusException se = (StatusException) cause;
          return new StatusRuntimeException(se.getStatus(), se.getTrailers());
        } else if (cause instanceof StatusRuntimeException) {
          StatusRuntimeException se = (StatusRuntimeException) cause;
          return new StatusRuntimeException(se.getStatus(), se.getTrailers());
        }
        cause = cause.getCause();
      }
      return Status.UNKNOWN.withDescription("unexpected exception").withCause(t)
          .asRuntimeException();
    }