void () { getSettings().BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE_SHIFTED2; getSettings().ELSE_ON_NEW_LINE = true; getSettings().getRootSettings().getIndentOptions(JavaFileType.INSTANCE).INDENT_SIZE = 4; doMethodTest( """ long a = System.currentTimeMillis(); if (a == 0){ }else if (a > 1){ }else if (a > 2){ }else if (a > 3){ }else if (a > 4){ }else if (a > 5){ }else{ }""", """ long a = System.currentTimeMillis(); if (a == 0) { } else if (a > 1) { } else if (a > 2) { } else if (a > 3) { } else if (a > 4) { } else if (a > 5) { } else { }""" ); }