code: public NaryTree getLeafAt(int idx) {
          NaryTree leaf = null;
          for (NaryTree l : this.getLeaves()) {
              if (l.start <= idx && idx < l.end) {
                  leaf = l;
              }
          }
          return leaf;
      }
docs: Gets the leaf containing the specified token index.