void () { // Inspired by IDEA-75053. getSettings().KEEP_SIMPLE_CLASSES_IN_ONE_LINE = true; getSettings().CLASS_BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE; String text = """ class Test { void foo() { bind(new TypeLiteral<MyType>() {}).toProvider(MyProvider.class); } }"""; doTextTest(text, text); }