void (@NotNull @NonNls String propertyName, @Nullable @NonNls String propertyValue) { if (propertyValue == null) return; @NlsSafe String exact = "-D" + propertyName; @NlsSafe String prefix = "-D" + propertyName + "="; String value = propertyValue.isEmpty() ? exact : prefix + expandMacros(propertyValue); replaceOrAddAt(new CompositeParameterTargetedValue(value), myParameters.size(), o -> o.equals(exact) || o.startsWith(prefix)); }