private void setClipboardContents(Clipboard clipboard, TreePath[] paths) {

		ProgramNode[] nodes = new ProgramNode[paths.length];
		for (int i = 0; i < nodes.length; i++) {
			nodes[i] = (ProgramNode) paths[i].getLastPathComponent();
		}

		ProgramTreeTransferable contents = new ProgramTreeTransferable(nodes);
		clipboard.setContents(contents, this);
	}
Create a TreeTransferable object from the given paths, and
use it set the clipboard contents.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramTreeActionManager.java