void () { String text = """ class A { /** long<caret> */ void longName() {} void example() {} } """; myFixture.configureByText("a.groovy", text); performEditorAction(IdeActions.ACTION_HIPPIE_COMPLETION); assert myFixture.getEditor().getDocument().getText().contains("** longName\n"); performEditorAction(IdeActions.ACTION_HIPPIE_COMPLETION); myFixture.checkResult(text); }