code: public function populate(EnvironmentInterface $environment)
      {
          $metaModel = $this->factory->getMetaModel($environment->getDataDefinition()->getName());
          foreach ($metaModel->getAttributes() as $attribute) {
              $event = new PopulateAttributeEvent($metaModel, $attribute, $environment);
              // Trigger BuildAttribute Event.
              $this->dispatcher->dispatch($event::NAME, $event);
          }
      }
docs: Populate the environment.
  
  @param EnvironmentInterface $environment The environment.
  
  @return void