void () { getSettings(JavaLanguage.INSTANCE).RIGHT_MARGIN = 140; getSettings(JavaLanguage.INSTANCE).CALL_PARAMETERS_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED; getSettings(JavaLanguage.INSTANCE).METHOD_CALL_CHAIN_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED; getSettings(JavaLanguage.INSTANCE).getRootSettings().getIndentOptions(JavaFileType.INSTANCE).INDENT_SIZE = 2; getSettings(JavaLanguage.INSTANCE).getRootSettings().getIndentOptions(JavaFileType.INSTANCE).CONTINUATION_INDENT_SIZE = 2; getSettings(JavaLanguage.INSTANCE).ALIGN_MULTILINE_PARAMETERS_IN_CALLS = true; doTextTest(""" class Foo { void foo() { for (int i = 0; i < descriptors.length; i++) { descriptors[i] = manager.createProblemDescriptor(results.get(i), "Usage of the API documented as @since 1.5", (LocalQuickFix)null,ProblemHighlightType.GENERIC_ERROR_OR_WARNING); } } }""", """ class Foo { void foo() { for (int i = 0; i < descriptors.length; i++) { descriptors[i] = manager.createProblemDescriptor(results.get(i), "Usage of the API documented as @since 1.5", (LocalQuickFix) null, ProblemHighlightType.GENERIC_ERROR_OR_WARNING); } } }"""); }