/**
  * @param string $name
  *
  * @throws \LogicException
  */
 private function addProperty($name = null)
 {
     if ($name === null) {
         $name = $this->currentSelector instanceof NamedSelectorInterface ? $this->currentSelector->name() : 'field' . $this->nonameCount++;
     }
     $this->projector->add(new Property($this->currentSelector, $name));
     $this->currentSelector = null;
 }