Improve getExtendedSupers implementation