public function addServiceDefinition(ServiceDefinition $definition) : Builder
    {
        $this->definition->addServiceDefinition($definition);

        foreach ($definition->getChildren() as $child) {
            $this->addServiceDefinition($child);
        }

        return $this;
    }
public function addServiceDefinition(ServiceDefinition $definition) : Builder
    {
        $this->definition->addServiceDefinition($definition);

        foreach ($definition->getChildren() as $child) {
            $this->addServiceDefinition($child);
        }

        return $this;
    }
@param ServiceDefinition $definition

@return Builder