private void goToView(ProgramTreeActionContext context) {

		// the selected node must be represented in the view for the 'go to' to work 
		addToView(context);

		ProgramNode node = context.getLeadSelectedNode();
		ProgramFragment f = node.getFragment();
		Address addr = null;
		if (f != null && !f.isEmpty()) {
			addr = f.getMinAddress();
		}
		else if (f == null) {
			ProgramModule module = node.getModule();
			addr = module.getFirstAddress();
		}

		if (addr != null) {
			ProgramDnDTree tree = context.getTree();
			tree.goTo(addr);
		}
	}
Clear the system clipboard if there is tree transferable data on it.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramTreeActionManager.java