void (@NotNull YAMLKeyValue keyValueToAdd) { final YAMLKeyValue existingKey = getKeyValueByKey(keyValueToAdd.getKeyText()); if (existingKey == null) { addNewKey(keyValueToAdd); } else { existingKey.replace(keyValueToAdd); } }