private function addCommonNeighborsFromArray(array $data)
    {
        $_documentClass = $this->_documentClass;

        $left  = $data['left'];
        $right = $data['right'];

        if (!isset($this->_result[$left])) {
            $this->_result[$left] = [];
        }
        if (!isset($this->_result[$left][$right])) {
            $this->_result[$left][$right] = [];
        }

        foreach ($data['neighbors'] as $neighbor) {
            $this->_result[$left][$right][] = $_documentClass::createFromArray($neighbor);
        }
    }