void () { // Inspired by IDEA-53013 getSettings().ALIGN_MULTILINE_METHOD_BRACKETS = true; getSettings().ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION = false; getSettings().ALIGN_MULTILINE_PARAMETERS = true; getSettings().ALIGN_MULTILINE_PARAMETERS_IN_CALLS = true; getSettings().CALL_PARAMETERS_RPAREN_ON_NEXT_LINE = true; getSettings().METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE = true; doClassTest( """ public void foo(int i, int j) { } public void bar() { foo(1, 2); }""", """ public void foo(int i, int j ) { } public void bar() { foo(1, 2 ); }""" ); // Inspired by IDEA-55306 getSettings().ALIGN_MULTILINE_METHOD_BRACKETS = false; getSettings().CALL_PARAMETERS_RPAREN_ON_NEXT_LINE = false; String method = """ executeCommand(new Command<Boolean>() { public Boolean run() throws ExecutionException { return doInterrupt(); } });"""; doMethodTest(method, method); }