private void selectNodes(GTreeNode... nodes) {
		List<TreePath> paths = new ArrayList<>(nodes.length);
		for (GTreeNode node : nodes) {
			paths.add(node.getTreePath());
		}

		tree.setSelectionPaths(paths);
		waitForTree();
	}
Tests for the 'make enum from a selection' action
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/CreateEnumFromSelectionTest.java