private void getModelNode(ProgramNode parent, Group group, Consumer<ProgramNode> consumer) {

		int expireMs = 3000;
		Supplier<ProgramNode> supplier = () -> {
			int nchild = parent.getChildCount();
			for (int i = 0; i < nchild; i++) {
				ProgramNode child = (ProgramNode) parent.getChildAt(i);
				if (child.getGroup() == group) {
					return child;
				}
			}
			return null;
		};
		ExpiringSwingTimer.get(supplier, expireMs, consumer);
	}
Merge a module with its parent. The module is deleted if it has
no other parents; called by the action listener on a menu.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramTreeActionManager.java