                         params = proxy.docParams(@getFullClassName(editor), funcName)
 
                         if params.params? and params.params[element]?
-                            return @getFullClassName(editor, params.params[element])
+                            return @getFullClassName(editor, params.params[element].type, true)
 
             chain = editor.scopeDescriptorForBufferPosition([lineNumber, line.length]).getScopeChain()
 


            else if className
                matches = line.match(usePattern)

                if matches
                    classNameParts = className.split('\\')
                    importNameParts = matches[1].split('\\')

                        found = true

                        fullClass = matches[1]
                        classNameParts = classNameParts[1 .. classNameParts.length]

                        if (classNameParts.length > 0)
