@Override
  public void setReplaceAllOccurrences(boolean allOccurrences) {
    throw new IncorrectOperationException("don't invoke this method");
  }
@Override
  public void setReplaceAllOccurrences(boolean allOccurrences)