IDE-932

Make sure to only show the superclasses in the dropdown
list that exist and have correct type hierarchy.