constructor(left, right, index, currentAttributes) {
    this.left = left;
    this.right = right;
    this.index = index;
    this.currentAttributes = currentAttributes;
  }
@param {Item|null} left
@param {Item|null} right
@param {number} index
@param {Map<string,any>} currentAttributes