private List<TreePath> getSelectionPaths(GTreeNode node) {
		TreePath[] allSelectionPaths = tree.getSelectionPaths();
		if (node == tree.getViewRoot()) {
			return CollectionUtils.asList(allSelectionPaths);
		}
		if (allSelectionPaths == null) {
			return Collections.emptyList();
		}
		TreePath nodeTreePath = node.getTreePath();
		List<TreePath> pathList = new ArrayList<>();
		for (TreePath path : allSelectionPaths) {
			if (nodeTreePath.isDescendant(path)) {
				pathList.add(nodeTreePath);
			}
		}
		return pathList;
	}
Returns the top few paths that are visible in the view.
@return the top few paths that are visible in the view.
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/GTreeState.java