private void selectNode(ProgramNode dropNode, ProgramNode nodeToSelect) {

		// apply expansion state of the dropped node to the new node.
		tree.matchExpansionState(dropNode, nodeToSelect);

		// add the target node to the selection later so
		// that the selection shows as being selected; 
		// without the invokeLater(), the path is not
		// rendered as being selected.
		addToSelection(nodeToSelect);
	}
Match the expansion state for the dropNode and the nodeToSelect
(which is the new node that just got added). Select the new
node.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ReorderManager.java