Foo { SomType _bar; }
I write in another class foo.getBar() and press ALT+Enter the result is
public Object getBar() { return _bar; }
And I'm prompted to edit return type. But it seems that it is possible to determine it automatically.