void () { final CommonCodeStyleSettings settings = CodeStyle.getSettings(getProject()).getCommonSettings(JavaLanguage.INSTANCE); boolean old = settings.ALIGN_GROUP_FIELD_DECLARATIONS; try { settings.ALIGN_GROUP_FIELD_DECLARATIONS = true; doSingleTest(); } finally { settings.ALIGN_GROUP_FIELD_DECLARATIONS = old; } }