public boolean containsKey(K key) {

	    RedBlackNode<K,V> node = root;
        while(node != null) {
        	int comp = comparator.compare(key, node.key);
            if (comp == 0 ){
                return true;
            }
            if (comp < 0) {
                node = node.left;
            }
            else {
                node = node.right;
            }
        }
        return false;
    }
Returns true if the key is in the set.
@param key the key whose presence is to be tested.
Ghidra/Framework/Generic/src/main/java/generic/stl/RedBlackTree.java