public AttributedVertex getOutermostVertex(AttributedVertex vertex) {
		while (!graph.containsVertex(vertex)) {
			AttributedVertex owner = findOwnerOf(vertex);
			if (owner == null) {
				break;  // should never happen. not sure what to do here, but don't want to loop forever
			}
			vertex = owner;
		}
		return vertex;
	}
Return the outermost GroupVertex containing the given vertex or else return the given vertex
if it is not in a group.	 
 
@param vertex the vertex to check if inside a group.
@return the outermost GroupVertex containing the given vertex or else return the given vertex
if it is not in a group.
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/GhidraGraphCollapser.java