code: @Override
      public int getDepth() {
          if (depth == UNSET) {
              if (hasParent()) {
                  depth = parent.getDepth() + 1;
              } else {
                  depth = 0;
              }
          }
          return depth;
      }
docs: return scope depth
  
  @return Scope depth