docs: private void addReplicaStatsOf(RecordStore recordStore, LocalMapOnDemandCalculatedStats onDemandStats) {
          if (!hasRecords(recordStore)) {
              return;
          }
  
          long backupEntryCount = 0;
          long backupEntryMemoryCost = 0;
  
          int totalBackupCount = recordStore.getMapContainer().getTotalBackupCount();
          for (int replicaNumber = 1; replicaNumber <= totalBackupCount; replicaNumber++) {
              int partitionId = recordStore.getPartitionId();
              Address replicaAddress = getReplicaAddress(partitionId, replicaNumber, totalBackupCount);
              if (!isReplicaAvailable(replicaAddress, totalBackupCount)) {
                  printWarning(partitionId, replicaNumber);
                  continue;
              }
              if (isReplicaOnThisNode(replicaAddress)) {
                  backupEntryMemoryCost += recordStore.getOwnedEntryCost();
                  backupEntryCount += recordStore.size();
              }
          }
  
          if (NATIVE != recordStore.getMapContainer().getMapConfig().getInMemoryFormat()) {
              onDemandStats.incrementHeapCost(backupEntryMemoryCost);
          }
          onDemandStats.incrementBackupEntryMemoryCost(backupEntryMemoryCost);
          onDemandStats.incrementBackupEntryCount(backupEntryCount);
          onDemandStats.setBackupCount(recordStore.getMapContainer().getMapConfig().getTotalBackupCount());
      }