public function addMethod(Method $method)
    {
        $this->methods[$method->getType()] = $method;

        foreach ($this->getSecuritySchemes() as $securityScheme) {
            $method->addSecurityScheme($securityScheme);
        }
    }