void () { // Inspired by IDEA-21795 getIndentOptions().USE_RELATIVE_INDENTS = true; getIndentOptions().CONTINUATION_INDENT_SIZE = 4; doTextTest( """ public class FormattingTest { public boolean test1(int a, int b, int c, int d) { return a == 1 && b == 2; } public boolean multilineSignOnCurrent(int a, int b, int c, int d) { return a == 0 && (b == 0 || c == 0) && d == 0; } public boolean multilineSignOnNext(int a, int b, int c, int d) { return a == 0 && (b == 0 || c == 0) && d == 0; } public boolean expectedMultilineSignOnNext(int a, int b, int c, int d) { return a == 0 && (b == 0 || c == 0) && d == 0; } }""", """ public class FormattingTest { public boolean test1(int a, int b, int c, int d) { return a == 1 && b == 2; } public boolean multilineSignOnCurrent(int a, int b, int c, int d) { return a == 0 && (b == 0 || c == 0) && d == 0; } public boolean multilineSignOnNext(int a, int b, int c, int d) { return a == 0 && (b == 0 || c == 0) && d == 0; } public boolean expectedMultilineSignOnNext(int a, int b, int c, int d) { return a == 0 && (b == 0 || c == 0) && d == 0; } }""" ); }