default KeyPath searchForAncestor(Class<? extends TraceObjectInterface> type, KeyPath path) {
		for (; path != null; path = path.parent()) {
			TraceObjectSchema schema = getSuccessorSchema(path);
			if (schema.getInterfaces().contains(type)) {
				return path;
			}
		}
		return null;
	}
Find the nearest ancestor implementing the given interface along the given path

<p>
If the given path implements the interface, it is returned, i.e., it is not strictly an
ancestor.

@param type the interface to search for
@param path the seed path
@return the found path, or {@code null} if no ancestor implements the interface
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/target/schema/TraceObjectSchema.java