void () { myFixture.configureByText(JavaFileType.INSTANCE, """ public class Hw { /** * @return index for the given relative path. Never {@code null}, but returned index may not exist (in which case, * * {@link Index#exists()} returns {@code false}). If the index do not exist, it may or may not be read-only (see <caret>) */ public static void test() { } } """); myFixture.getEditor().getSettings().setWrapWhenTypingReachesRightMargin(true); myFixture.type('{'); myFixture.type('@'); myFixture.checkResult(""" public class Hw { /** * @return index for the given relative path. Never {@code null}, but returned index may not exist (in which case, * * {@link Index#exists()} returns {@code false}). If the index do not exist, it may or may not be read-only (see * {@<caret>}) */ public static void test() { } } """); } public void testWrapAtLineWithParameterHints() { myFixture.configureByText(JavaFileType.INSTANCE, """ public class C { void m(int a, int b) {} void other() { m(1, 2<caret>); } }"""); myFixture.doHighlighting(); myFixture.checkResultWithInlays(""" public class C { void m(int a, int b) {} void other() { m(<hint text="a:"/>1, <hint text="b:"/>2<caret>); } }"""); myFixture.getEditor().getSettings().setWrapWhenTypingReachesRightMargin(true); myFixture.getEditor().getSettings().setRightMargin(30); myFixture.type(" "); myFixture.checkResultWithInlays(""" public class C { void m(int a, int b) {} void other() { m(<hint text="a:"/>1, <hint text="b:"/>2 <caret>); } }"""); myFixture.type(" "); myFixture.doHighlighting(); myFixture.checkResultWithInlays(""" public class C { void m(int a, int b) {} void other() { m(<hint text="a:"/>1, <hint text="b:"/>2 <caret>); } }"""); } }