void () { CodeStyleSettingsManager settingsManager = CodeStyleSettingsManager.getInstance(getProject()); assertInstanceOf(settingsManager, ProjectCodeStyleSettingsManager.class); CodeStyleSettings projectSettings = settingsManager.getCurrentSettings(); assertTrue(settingsManager.USE_PER_PROJECT_SETTINGS); assertEquals(77, projectSettings.RIGHT_MARGIN); assertEmpty(projectSettings.FIELD_NAME_PREFIX); Element state = settingsManager.getState(); Element codeStyle = state.getChild(CODE_STYLE_TAG_NAME); assertNotNull(codeStyle); }