completion support for nested method calls on "$this"

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 the matching completion suggestions after each "->"
The deeper the nesting is, the more the performance decreases.