void () { CodeStyleSettings codeStyleSettings = CodeStyle.getSettings(getProject()); CommonCodeStyleSettings javaSettings = codeStyleSettings.getCommonSettings(JavaLanguage.INSTANCE); javaSettings.RIGHT_MARGIN = 80; javaSettings.KEEP_LINE_BREAKS = false; JavaCodeStyleSettings.getInstance(getProject()).GENERATE_FINAL_PARAMETERS = false; javaSettings.METHOD_PARAMETERS_WRAP = CommonCodeStyleSettings.WRAP_ON_EVERY_ITEM; doTest(false); }