public void replaceByIndex(int index, int key, @NotNull T value) {
    if (key == 0) {
      specialZeroValue = value;
      hasZeroValue = true;
    }
    else {
      values[index] = value;
    }
  }
public void replaceByIndex(int index, int key, @NotNull T value)