void () { final PyTargetExpression target = assertResolvesTo(PyTargetExpression.class, "foo"); final PyFunction function = assertInstanceOf(ScopeUtil.getScopeOwner(target), PyFunction.class); assertEquals("g", function.getName()); }