public boolean isCollapsed(TreePath path) {
		return tree.isCollapsed(path);
	}
Selects the given paths, expanding them first if requested.  

@param paths the paths to select
@param expandPaths true to expand the paths first; this is only needed for multi-threaded 
nodes.  Non-threaded nodes should use false, as it increase performance.
@param origin the event type; use {@link EventOrigin#API_GENERATED} if unsure
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/GTree.java