code: private int getNonEmptyParentIndex() {
          return parent == null
                  ? -1
                  : parent.effectiveKeys().isEmpty() ? parent.getNonEmptyParentIndex() : parent.currentIndex;
      }
docs: ignore empty parent useful to skip root keys