void writeDataState(SaveState saveState) {
		GroupView currentView = treePanel.getGroupView();
		String treeName = treePanel.getTreeName();
		int numGroups = currentView.getCount();
		saveState.putInt(NUMBER_OF_GROUPS + treeName, numGroups);
		for (int i = 0; i < numGroups; i++) {
			GroupPath groupPath = currentView.getPath(i);
			String[] path = groupPath.getPath();
			saveState.putStrings(GROUP_NAME + treeName + i, path);
		}
	}
Set the tree selection.
@param paths the paths to select
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/TreeViewProvider.java