Added annotations to avoid warnings in TreeVisualizer.