Introduce Composite#getDepth