void (RadComponent component, IntList path) { RadComponent parent = component.getParent(); if (parent != null) { path.add(0, parent.getChildren().indexOf(component)); componentToPath(parent, path); } }