public function parseMethods($class, $produces)
    {
        $ret = [];
        foreach ($class->getMethods() as $method) {

            $def = $this->parseMethod($method, $produces);

            if ($def) {
                $methodDoc = $this->fetchDocComment($method);
                $tags = self::parseDocCommentTags($methodDoc);

                if (!isset($tags[self::T_PATH])) {
                    continue;
                }

                if (!isset($ret[$tags[self::T_PATH]])) {
                    $ret[$tags[self::T_PATH]] = [];
                }
                $ret[$tags[self::T_PATH]][$tags[self::T_METHOD]] = $def;
            }
        }
        return $ret;
    }