@Override
  public void addWatchedPrefix(int startOffset, ElementPattern<String> restartCondition) {
    myRestartingPrefixConditions.add(Pair.create(startOffset, restartCondition));
  }
@Override
  public void addWatchedPrefix(int startOffset, ElementPattern<String> restartCondition)