fiber: Fiber,
    type: 'error' | 'warn',
    args: $ReadOnlyArray<any>,
  ): void {
    const message = format(...args);
    
    
    
    
    
    
     
    const fiberID = getFiberID(getPrimaryFiber(fiber));
     
    fibersWithChangedErrorOrWarningCounts.add(fiberID);
     
    const fiberMap = type === 'error' ? fiberToErrorsMap : fiberToWarningsMap;
    const messageMap = fiberMap.get(fiberID);
    if (messageMap != null) {
      const count = messageMap.get(message) || 0;
      messageMap.set(message, count + 1);
    } else {
      fiberMap.set(fiberID, new Map([[message, 1]]));
    }
     
    updateMostRecentlyInspectedElementIfNecessary(fiberID);
  }