Fixes: Implementation is incorrect in this case: addChild(foo);

Pressing Ctrl+Shift+1 when the cursor is on foo only offers to generate a public function; I guess because addChild is declared in another class.