void cutClipboardNodes(ProgramDnDTree tree) {
		// cut the contents of the clipboard from the program, as a paste was not done
		List<ProgramNode> list = getNodesFromClipboard();
		for (ProgramNode node : list) {
			if (tree.getModel().getRoot() != node.getRoot()) {
				break;
			}

			ProgramModule parentModule = node.getParentModule();
			Group group = node.getGroup();
			try {
				parentModule.removeChild(group.getName());
			}
			catch (NotEmptyException e) {
				clearCut(node);
			}
			catch (ConcurrentModificationException e) {
				// ha!
			}
		}

		clearSystemClipboard();
		tempClipboard.setContents(null, this);
	}
Remove node from the list of ProgramNodes in the clipboard. This method is called
if there was a problem pasting a group.
@param tree the tree
@param node the node
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramTreeActionManager.java