void () { myFixture.configureByText("a.java", "import java.util.*; class X { Map<String, Object> getMap() { return (Ma<caret>)}}"); var elements = myFixture.completeBasic(); assertTrue(elements.length > 0); LookupElementPresentation presentation = renderElement(elements[0]); assertEquals("(Map<String, Object>)", presentation.getItemText()); myFixture.type('\n'); myFixture.checkResult("import java.util.*; class X { Map<String, Object> getMap() { return (Map<String, Object>) <caret>}}"); }