public List<GTreeNode> getSelectedNodes() {
		TreePath[] paths = getSelectionPaths();
		return Arrays.stream(paths)
				.map(tp -> (GTreeNode) tp.getLastPathComponent())
				.collect(Collectors.toList());
	}
This method is useful for debugging tree problems. Don't know where else to put it.

@param out the output writer
@param name use this to indicate what tree event occurred ("node inserted" "node removed",
           etc.)
@param e the TreeModelEvent;
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/GTree.java