completion support for nested method calls on "$this" / fixed accuracy of class-resolving

In a class it is now possible to have code completion for nested method
calls.

For instance in symfony controller you can now do something like this:

$this->getDoctrine()->getEntityManager()->getConnection()->…

while getting matching completion suggestions after each "->"

The deeper the nesting is, the more the performance decreases.