void () { // Inspired by IDEA-70242 CommonCodeStyleSettings javaCommonSettings = getCurrentCodeStyleSettings().getCommonSettings(JavaLanguage.INSTANCE); javaCommonSettings.WRAP_LONG_LINES = true; javaCommonSettings.RIGHT_MARGIN = 40; doTest( """ import static java.util.concurrent.atomic.AtomicInteger.*; /** * Some really long javadoc comment which exceeeds the right margin */ class <caret>Test { }""", """ import static java.util.concurrent.atomic.AtomicInteger.*; /** * Some really long javadoc comment\s * which exceeeds the right margin */ class <caret>Test { }""" ); }