@semoro: if I understand correctly, the desired behavior is exactly the same as in Java, meaning that the static method call or field reference should not be qualified. in the first case, the import should be
import b.Bar.foobar
, and in the second case it will be
import b.Bar.buz
(it doesn’t matter that we have an existing import for
B.bar
)