void () { final PropertiesCodeStyleSettings codeStyleSettings = PropertiesCodeStyleSettings.getInstance(getProject()); codeStyleSettings.KEY_VALUE_DELIMITER_CODE = 1; final PropertyImpl property = (PropertyImpl)PropertiesElementFactory.createProperty(getProject(), "xxx", "yyy", null); final char delimiter = property.getKeyValueDelimiter(); assertEquals(':', delimiter); assertEquals("xxx:yyy", property.getPsiElement().getText()); codeStyleSettings.KEY_VALUE_DELIMITER_CODE = 0; }