docs: PartitionRuntimeState createMigrationCommitPartitionState(MigrationInfo migrationInfo) {
          lock.lock();
          try {
              if (!partitionStateManager.isInitialized()) {
                  return null;
              }
  
              List<MigrationInfo> completedMigrations = migrationManager.getCompletedMigrationsCopy();
              InternalPartition[] partitions = partitionStateManager.getPartitionsCopy();
  
              int partitionId = migrationInfo.getPartitionId();
              InternalPartitionImpl partition = (InternalPartitionImpl) partitions[partitionId];
              migrationManager.applyMigration(partition, migrationInfo);
  
              migrationInfo.setStatus(MigrationStatus.SUCCESS);
              completedMigrations.add(migrationInfo);
  
              int committedVersion = getPartitionStateVersion() + 1;
              return new PartitionRuntimeState(partitions, completedMigrations, committedVersion);
          } finally {
              lock.unlock();
          }
      }