docs: def classes(p: ecore.EPackage):
          """Returns classes in package in ordered by number of bases."""
          classes = (c for c in p.eClassifiers if isinstance(c, ecore.EClass))
          return sorted(classes, key=lambda c: len(set(c.eAllSuperTypes())))