private List<Object> findNodePath(Object rootNode,
			Class<? extends ComponentProvider> providerClass) {
		Object node = getInstanceField("child", rootNode);
		Object resultNode = findNode(node, providerClass);
		List<Object> list = new ArrayList<>();
		Object n = resultNode;
		while (n != null) {
			list.add(n);
			n = getInstanceField("parent", n);
		}
		Collections.reverse(list);
		return list;
	}
Crops a part of the current image, keeping what is inside the given bounds. This method
creates a shape such that the top and bottom of the cropped image have a jagged line, looking
somewhat like a sideways lightening bolt.

@param bounds the bounds to keep
@return the snippet
Ghidra/Features/Base/src/main/java/help/screenshot/AbstractScreenShotGenerator.java