void () { final List<String> variants = myFixture.getCompletionVariants("NotificationGroupIdCompletion.java", "notificationGroupId.xml"); assertContainsElements(variants, "my.balloon", "my.toolwindow"); final LookupElementPresentation balloon = getLookupElementPresentation("my.balloon"); assertNull(balloon.getTailText()); assertEquals("BALLOON", balloon.getTypeText()); assertEquals(AllIcons.Ide.Notification.NoEvents, balloon.getTypeIcon()); final LookupElementPresentation toolwindow = getLookupElementPresentation("my.toolwindow"); assertEquals(" (my.toolwindow.id)", toolwindow.getTailText()); assertEquals("TOOL_WINDOW", toolwindow.getTypeText()); assertNull(toolwindow.getTypeIcon()); }