/**
  * @param int $left
  * @param int $right
  * @return array|null
  */
 protected function findInsertAfterRange(&$left, &$right)
 {
     $result = null;
     $left = $this->node->getAttribute($this->rightAttribute);
     $right = $this->getNodeBehavior()->getNext()->select($this->leftAttribute)->scalar();
     if ($right === false) {
         $result = $this->getNodeBehavior()->getParent()->select([$this->leftAttribute, $this->rightAttribute])->createCommand()->queryOne();
         $right = $result[$this->rightAttribute];
     }
     $right = (int) $right;
     return $result;
 }