void () { CodeStyleSettings settings = CodeStyle.createTestSettings(); CommonCodeStyleSettings javaSettings = settings.getCommonSettings(JavaLanguage.INSTANCE); javaSettings.BLANK_LINES_AROUND_FIELD = 3; javaSettings.BLANK_LINES_AROUND_METHOD = 4; javaSettings.BLANK_LINES_AROUND_CLASS = 5; javaSettings.KEEP_BLANK_LINES_BEFORE_RBRACE = 0; javaSettings.KEEP_BLANK_LINES_IN_CODE = 0; javaSettings.KEEP_BLANK_LINES_IN_DECLARATIONS = 0; CodeStyleSettingsManager.getInstance(getProject()).setTemporarySettings(settings); }