ProgramNode[] findNodes(String groupName) {

		ArrayList<ProgramNode> list = new ArrayList<>();

		for (ProgramNode node : nodeList) {
			if (node.getName().equals(groupName)) {
				list.add(node);
			}
		}
		ProgramNode[] nodes = new ProgramNode[list.size()];
		return list.toArray(nodes);
	}
Find the nodes containing the given group name; this
method is called when a Group has been renamed, and we
have to find the node according to name (and not by Group).
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramDnDTree.java