void () { CodeStyleSettings temp = CodeStyle.createTestSettings(); CommonCodeStyleSettings javaSettings = temp.getCommonSettings(JavaLanguage.INSTANCE); javaSettings.KEEP_LINE_BREAKS = false; javaSettings.ALIGN_MULTILINE_PARAMETERS_IN_CALLS = true; javaSettings.CALL_PARAMETERS_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED | CommonCodeStyleSettings.WRAP_ON_EVERY_ITEM; CodeStyle.doWithTemporarySettings(getProject(), temp, () -> doTest(new ReformatCodeRunOptions(VCS_CHANGED_TEXT))); }