def get_parent_of(class_name)
      return nil if class_name.eql?("Object")

      const = find_constant_by_name(class_name)
      return "Object" if const.nil?

      klass = get_class(const.definition_id)
      return "Object" if klass.nil?

      return "Object" if klass.parent_ref.nil?
      parent_const = solve_reference(klass.parent_ref)
      if parent_const
        parent_const.full_name
      else
        klass.parent_ref.relative_name
      end
    end
def get_parent_of(class_name)
      return nil if class_name.eql?("Object")

      const = find_constant_by_name(class_name)
      return "Object" if const.nil?

      klass = get_class(const.definition_id)
      return "Object" if klass.nil?

      return "Object" if klass.parent_ref.nil?
      parent_const = solve_reference(klass.parent_ref)
      if parent_const
        parent_const.full_name
      else
        klass.parent_ref.relative_name
      end
    end
Other