public function hasReturnTypes()
    {
        if (\count($this->returnTypes)) {
            return true;
        }

        if (\count($this->returnClassTypes)) {
            return true;
        }

        return false;
    }