void () { myProfile.initInspectionTools(); assertFalse(myProfile.getToolsOrNull("PrivateMemberAccessBetweenOuterAndInnerClass", null).isEnabled()); assertNull(myProfile.getToolsOrNull("NonStaticInnerClassInSecureContext", null)); myProfile.setToolEnabled("PrivateMemberAccessBetweenOuterAndInnerClass", true); final Element out = new Element("profile"); myProfile.writeExternal(out); assertEquals(""" <profile version="1.0"> <option name="myName" value="Test" /> <inspection_tool class="PrivateMemberAccessBetweenOuterAndInnerClass" enabled="true" level="WARNING" enabled_by_default="true" /> </profile>""", JDOMUtil.writeElement(out)); }