void () { LookupElement[] lookupElements = doExtendedCompletion(); LookupElement reexportedFunc = ContainerUtil.find(lookupElements, variant -> variant.getLookupString().equals("my_func")); assertNotNull(reexportedFunc); TestLookupElementPresentation funcPresentation = TestLookupElementPresentation.renderReal(reexportedFunc); assertEquals(" (pkg)", funcPresentation.getTailText()); LookupElement notExportedVar = ContainerUtil.find(lookupElements, variant -> variant.getLookupString().equals("my_var")); assertNotNull(notExportedVar); TestLookupElementPresentation varPresentation = TestLookupElementPresentation.renderReal(notExportedVar); assertEquals(" (pkg.mod)", varPresentation.getTailText()); }