private function resolveType($node)
    {
        if ($node instanceof Node\NullableType) {
            $node->type = $this->resolveType($node->type);
            return $node;
        }
        if ($node instanceof Name) {
            return $this->resolveClassName($node);
        }

        return $node;
    }
private function resolveType($node)
    {
        if ($node instanceof Node\NullableType) {
            $node->type = $this->resolveType($node->type);
            return $node;
        }
        if ($node instanceof Name) {
            return $this->resolveClassName($node);
        }

        return $node;
    }
private function resolveType ( $ node ) { if ( $ node instanceof Node \ NullableType ) { $ node -> type = $ this -> resolveType ( $ node -> type ) ; return $ node ; } if ( $ node instanceof Name ) { return $ this -> resolveClassName ( $ node ) ; } return $ node ; }
Helper method for resolving type nodes

@param Node|string|null $node Instance of node

@return Node|Name|FullyQualified
Helper method for resolving type nodes