docs: void finishStream(
        int streamId,
        @Nullable Status status,
        RpcProgress rpcProgress,
        boolean stopDelivery,
        @Nullable ErrorCode errorCode,
        @Nullable Metadata trailers) {
      synchronized (lock) {
        OkHttpClientStream stream = streams.remove(streamId);
        if (stream != null) {
          if (errorCode != null) {
            frameWriter.rstStream(streamId, ErrorCode.CANCEL);
          }
          if (status != null) {
            stream
                .transportState()
                .transportReportStatus(
                    status,
                    rpcProgress,
                    stopDelivery,
                    trailers != null ? trailers : new Metadata());
          }
          if (!startPendingStreams()) {
            stopIfNecessary();
            maybeClearInUse(stream);
          }
        }
      }
    }