docs: public int getDepth(int index) {
      if (index == 0) {
        return 0;
      } else {
        int[] parts = findSubexpression(index);
        return 1 + subexpressions.get(parts[0]).getDepth(parts[1]);
      }
    }