Adding support for qualified names in extends