protected function parseFunction(FunctionLike $node, FunctionModelInterface $function): void
    {
        foreach ($node->getParams() as $param) {
            $this->parameterNodeParser->invoke($param, $function);
        }

        $return = new ReturnModel();
        $return->setParentNode($function);
        if ($node->getReturnType() !== null) {
            $this->typeNodeParser->invoke($node->getReturnType(), $return);
        }
        $function->setReturn($return);
    }