void () { getSettings().CLASS_BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE_SHIFTED; doTextTest( """ class X { public void run() { Runnable a = new Runnable() { @Override public void run() { \s } }; } }""", """ class X { public void run() { Runnable a = new Runnable() { @Override public void run() { } }; } }""" ); }