private static void componentToPath(RadComponent component, IntList path) {
    RadComponent parent = component.getParent();

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