public static LinkedHashSet<Class<?>> getAllParents(Class<?> c) {

		LinkedHashSet<Class<?>> l = new LinkedHashSet<>();
		if (Object.class.equals(c)) {
			l.add(Object.class);
			return l; // Object has no parents
		}

		doGetAllParents(c, l);
		return l;
	}
Returns an order set of all interfaces implemented and classes extended for the entire
type structure of the given class.
<p>
If <code>Object.class</code> is passed to this method, then it will be returned in the
result of this method.

@param c the class to introspect
@return the set of parents
Ghidra/Framework/Utility/src/main/java/utilities/util/reflection/ReflectionUtilities.java