void removeFromClipboard(ProgramDnDTree tree, ProgramNode node) {

		try {
			List<ProgramNode> list = getProgramNodeListFromClipboard();

			int listSize = 0;
			if (list != null) {
				listSize = list.size();
				list.remove(node);
			}

			clearCut(node);

			if (listSize == 0) {
				tempClipboard.setContents(null, this);
			}
		}
		catch (UnsupportedFlavorException e) {
			// data flavor is not supported
			Msg.showError(this, null, "Cut from Clipboard " + tempClipboard.getName() + " Failed",
				"Data flavor in clipboard is not supported.", e);
		}
		catch (IOException e) {
			// data is no longer available
			Msg.showError(this, null, "Cut from Clipboard " + tempClipboard.getName() + " Failed",
				"Data is no longer available for paste operation", e);
		}
		catch (Exception e) {
			String message = ExceptionUtils.getMessage(e);
			Msg.showError(this, null, "Cut from Clipboard " + tempClipboard.getName() + " Failed",
				message, e);
		}
	}
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