String (@NotNull @NonNls String propertyName) { String exact = "-D" + propertyName; String prefix = "-D" + propertyName + "="; int index = indexOfLocalParameter(o -> o.equals(exact) || o.startsWith(prefix)); if (index < 0) return null; String str = myParameters.get(index).getLocalValue(); return str.length() == exact.length() ? "" : str.substring(prefix.length()); }