void (@NotNull CodeInsightSettings settings) { if (!settings.equals(defaultSettings)) { Element newS = new Element("temp"); settings.writeExternal(newS); Element oldS = new Element("temp"); defaultSettings.writeExternal(oldS); String DEFAULT_SETTINGS_EXTERNALIZED = JDOMUtil.writeElement(oldS); Assert.assertEquals("Code insight settings damaged", DEFAULT_SETTINGS_EXTERNALIZED, JDOMUtil.writeElement(newS)); } }