void (String key, String value) { if (ApplicationManager.getApplication().isUnitTestMode() && myKeysOrder != null) { LOG.assertTrue(!myKeysOrder.contains(key)); } final PropertiesFile propertiesFile = myResourceBundle.getDefaultPropertiesFile(); if (myAlphaSorted) { myCodeStyleManager.reformat(propertiesFile.addProperty(key, value).getPsiElement()); } else { insertPropertyLast(key, value, propertiesFile); if (myOrdered) { myKeysOrder.add(key); } } }