void () { myFixture.configureByText("Test.java", """ import java.util.List; public final class Complete { public static void main(String[] args) { SubClass instance; instance.<caret> } static class SuperClass<T> { public List<T> list(Object param) {return null;} } static class SubClass extends SuperClass<String> { @Override public List<String> list(Object paramName) { return super.list(paramName); } } }"""); LookupElement[] elements = myFixture.completeBasic(); assertNotNull(elements); LookupElement listElement = StreamEx.of(elements).collect(MoreCollectors.onlyOne(e -> e.getLookupString().equals("list"))).orElseThrow(); LookupElementPresentation presentation = new LookupElementPresentation(); listElement.renderElement(presentation); assertEquals("(Object paramName)", presentation.getTailText()); }