code: private function buildName(INestable $nestable)
      {
          $path = [];
  
          do {
              array_unshift($path, $nestable->getId());
  
              $nestable = $nestable->getParent();
          } while ($nestable);
  
          $ret = '';
  
          foreach ($path as $idx => $val) {
              if ($idx === 0) {
                  $ret .= $val;
              } else {
                  $ret .= '[' . $val . ']';
              }
          }
  
          return $ret;
      }
docs: @param INestable $nestable
  
  @return string