Use a shared implementation of getMatchingSuperRegClass().