    # File lib/yard/code_objects/class_object.rb, line 42
        def inheritance_tree(include_mods = false)
          list = (include_mods ? mixins(:instance, :class) : [])
          if superclass.is_a?(Proxy) || superclass.respond_to?(:inheritance_tree)
            list += [superclass] unless superclass == P(:Object) || superclass == P(:BasicObject)
          end
          [self] + list.map do |m|
            next m if m == self
            next m unless m.respond_to?(:inheritance_tree)
            m.inheritance_tree(include_mods)
          end.flatten.uniq
        end