void () { 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>); } }"""); }