void () { Registry.get("java.completion.show.constructors").setValue(true); Disposer.register(myFixture.getTestRootDisposable(), () -> Registry.get("java.completion.show.constructors").setValue(false)); myFixture.addClass("class Bar {" + "Bar(boolean a);" + "Bar(String a);" + "Bar(int a);" + "} " + "class Bar2 {}"); myFixture.configureByText("a.java", "class Foo {{ new Bar<caret> }}"); LookupElement[] elements = myFixture.completeBasic(); assertEquals("(boolean a) default package", LookupElementPresentation.renderElement(elements[2]).getTailText()); myFixture.getLookup().setCurrentItem(elements[2]); myFixture.type('\n'); myFixture.checkResult("class Foo {{ new Bar(<caret>) }}"); assertEquals("<html>boolean a</html>", parameterPresentation(0, -1)); assertEquals("<html>String a</html>", parameterPresentation(1, -1)); assertEquals("<html>int a</html>", parameterPresentation(2, -1)); checkHighlighted(0); }