code: func (s *State) StateForMigration() *statefile.File {
  	s.mu.Lock()
  	defer s.mu.Unlock()
  
  	return statefile.New(s.state.DeepCopy(), s.lineage, s.serial)
  }
docs: // StateForMigration is part of our implementation of statemgr.Migrator.