void () { setupModules("anotherModule"); myFixture.configureFromTempProjectFile(MAIN_MODULE_NAME + "/META-INF/plugin.xml"); myFixture.completeBasic(); List<String> lookupElements = myFixture.getLookupElementStrings(); assertSameElements(lookupElements, "mainModule/sub-descriptor", "anotherModule", "anotherModule/secondary-descriptor"); LookupElementPresentation mainModuleSubDescriptor = getLookupElementPresentation("mainModule/sub-descriptor"); assertTrue(mainModuleSubDescriptor.isItemTextBold()); //noinspection SpellCheckingInspection assertEquals("mypackage", mainModuleSubDescriptor.getTypeText()); assertPrioritizedLookupElement("mainModule/sub-descriptor", 200.0); final LookupElementPresentation anotherModule = getLookupElementPresentation("anotherModule"); assertEquals(AllIcons.Nodes.Module, anotherModule.getIcon()); assertFalse(anotherModule.isItemTextBold()); //noinspection SpellCheckingInspection assertEquals("mypackage.subpackage", anotherModule.getTypeText()); final LookupElementPresentation anotherModuleSecondary = getLookupElementPresentation("anotherModule/secondary-descriptor"); assertTrue(anotherModuleSecondary.isItemTextBold()); }