private boolean checkNodeForPaste(GTreeNode destNode) {

		List<GTreeNode> list = DataTreeClipboardUtils.getDataTreeNodesFromClipboard();

		for (GTreeNode node : list) {
			if (!node.isAncestor(destNode)) {
				// at least one node can be pasted from system clipboard
				return true;
			}
		}
		return false;
	}
Check the destination node for whether clipboard data can be pasted there.

@param destNode destination for paste operation
@return true if least one node can be pasted at destNode
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/projectdata/actions/ProjectDataPasteAction.java