Handle superclasses in docs generation.