private boolean isClassAnAncestor(RecoveredClass recoveredClass,
			RecoveredClass possibleAncestorClass) throws Exception {

		List<RecoveredClass> classHierarchy =
			new ArrayList<RecoveredClass>(recoveredClass.getClassHierarchy());

		if (classHierarchy.isEmpty()) {
			throw new Exception(
				recoveredClass.getName() + " should not have an empty class hierarchy");
		}

		//remove self
		classHierarchy.remove(recoveredClass);

		if (classHierarchy.contains(possibleAncestorClass)) {
			return true;
		}
		return false;
	}
Method to determine if a class is an ancestor of another class
@param recoveredClass the class with possible ancestor
@param possibleAncestorClass the class that might be ancestor of recoveredClass
@return true if possibleAncestorClass is an ancestor of recoveredClass, false otherwise
@throws Exception if class hierarchy is empty
Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RecoveredClassHelper.java