docs: private void updatePartitionsAndFinalizeMigrations(PartitionReplica[][] partitionTable,
              int version, Collection<MigrationInfo> completedMigrations) {
          for (int partitionId = 0; partitionId < partitionCount; partitionId++) {
              PartitionReplica[] replicas = partitionTable[partitionId];
              partitionStateManager.updateReplicas(partitionId, replicas);
          }
  
          partitionStateManager.setVersion(version);
  
          for (MigrationInfo migration : completedMigrations) {
              boolean added = migrationManager.addCompletedMigration(migration);
              if (added) {
                  migrationManager.scheduleActiveMigrationFinalization(migration);
              }
          }
          if (logger.isFineEnabled()) {
              logger.fine("Applied partition state update with version: " + version);
          }
          migrationManager.retainCompletedMigrations(completedMigrations);
  
          if (!partitionStateManager.setInitialized()) {
              node.getNodeExtension().onPartitionStateChange();
          }
      }