private function setDefinitionMethodCalls(Definition $definition, array $array)
    {
        if (isset($array['calls'])) {
            foreach ($array['calls'] as $call) {
                $args = [];
                if (isset($call[1])) {
                    foreach ($call[1] as $arg) {
                        $args[] = $this->convertArgument($arg);
                    }
                }

                $definition->addMethodCall($call[0], $args);
            }
        }
    }