private boolean isNodeID(DefaultMutableTreeNode node, ID ID) {
			Object userObject = node.getUserObject();
			if (!(userObject instanceof TOCItem)) {
				return false;
			}

			TOCItem item = (TOCItem) userObject;
			ID nodeID = item.getID();
			if (nodeID == null) {
				return false;
			}

			return nodeID.equals(ID);
		}
Our hook to install our custom cell renderer.
Ghidra/Framework/Help/src/main/java/help/CustomTOCView.java