private int getIndex() {
    int index = 0;
    FinderRecursivePanel<?> parent = myParent;
    while (parent != null) {
      index++;
      parent = parent.getParentPanel();
    }

    return index;
  }
private int getIndex()