/**
  * {@inheritdoc}
  */
 public function getComponent()
 {
     if (!isset($this->componentObject)) {
         $this->componentObject = RulesComponent::createFromConfiguration($this->component);
     }
     return $this->componentObject;
 }
 /**
  * {@inheritdoc}
  */
 public function getComponent()
 {
     $config = $this->getConfig();
     if ($config instanceof RulesUiComponentProviderInterface) {
         return $config->getComponent();
     } else {
         $configuration = $config->get($this->pluginDefinition->settings['config_key']);
         return RulesComponent::createFromConfiguration($configuration);
     }
 }