public void clearInheritsList(NodeType node) {
        if (!nodeExists(node)) return;

        // Remove myself from my parents children
        for (NodeType parent : parentsOfNode.get(node)) {
            if (childrenOfNode.containsKey(parent)) childrenOfNode.get(parent).remove(node);
        }

        parentsOfNode.remove(node);

    }
This class is responsible for managing inheritance relationships among generic constructs.
Each node is identified by a NodeType which should implement a good hashCode and .equals.

@author Mangern
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/index/InheritanceGraph.java