void () { myFixture.addClass("package p; public class ABC<T> {}"); configureJava(""" class Main { static { new Runnable() { { A<caret> } }; } }"""); final LookupElement[] elements = myFixture.completeBasic(); final LookupElement element = findLookupElementContainingText(elements, "ABC"); final LookupImpl lookup = getLookup(); lookup.finishLookup('<', element); waitForParameterInfo(); checkResult(""" import p.ABC; class Main { static { new Runnable() { { ABC<<caret>> } }; } }"""); tabOut(); checkResult(""" import p.ABC; class Main { static { new Runnable() { { ABC<><caret> } }; } }"""); }