@SuppressWarnings("unchecked")
BinaryNode<? extends Interval> binaryInterval = (BinaryNode<? extends Interval>) node;
visualizeNode(binaryInterval.leftChild(), node, number, style, depth + 1);
visualizeNode(binaryInterval.rightChild(), node, number, style, depth + 1);
} else if (node instanceof Node) {
Node n = (Node) node;
Iterator<Node> childIterator = n.childIterator();
while (childIterator.hasNext()) {
visualizeNode(childIterator.next(), node, number, style, depth + 1);
}
}
} else if (depth == maxDepth) {