private void replaceOrAddAt(@NotNull CompositeParameterTargetedValue replacement,
                              int position,
                              @NotNull Condition<? super String> existingCondition) {
    int index = indexOfLocalParameter(existingCondition);
    boolean setNewValue = StringUtil.isNotEmpty(replacement.getLocalValue());
    if (index > -1 && setNewValue) {
      myParameters.set(index, replacement);
    }
    else if (index > -1) {
      myParameters.remove(index);
    }
    else if (setNewValue) {
      myParameters.add(position, replacement);
    }
  }
private void replaceOrAddAt(@NotNull CompositeParameterTargetedValue replacement,
                              int position,
                              @NotNull Condition<? super String> existingCondition)