@Override
    public boolean equals(Object other) {
        if (other instanceof Node) {
            Node that = (Node) other;
            return getClass().equals(that.getClass()) && this.componentId.equals(that.componentId)
                    && this.instanceType().equals(that.instanceType()) && equalEdges(this.usedComponents(), that.usedComponents());
        } else {
            return false;
        }
    }
Returns the component represented by this - which is either the instance, or if the instance is a provider,
the component returned by it.
container-core/src/main/java/com/yahoo/container/di/componentgraph/core/Node.java