private void selectNodes(String... names) {

		// make sure things have settled down
		program.flushEvents();
		waitForSwing();

		List<GTreeNode> nodes = new ArrayList<>();
		for (String name : names) {
			DataTypeNode node = (DataTypeNode) programNode.getChild(name);
			assertNotNull("Unable to find node: " + name, node);
			nodes.add(node);
		}

		expandNode(programNode);
		selectNodes(nodes);
		waitForTree();
	}
Tests for the action that creates labels from the names and values in a selection of enum
data types.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/CreateLabelsFromEnumsTest.java