code: public function handle(PopulateEnvironmentEvent $event)
      {
          $environment = $event->getEnvironment();
          if ($environment->getDataDefinition() instanceof IMetaModelDataDefinition) {
              $this->populate($environment);
          }
      }
docs: Handle the event.
  
  @param PopulateEnvironmentEvent $event The event.
  
  @return void