void () { //currently, there are over 1000 keys in registry Registry.get("ide.completion.variant.limit").setValue(10_000, getTestRootDisposable()); final List<String> variants = myFixture.getCompletionVariants("RegistryKeyIdCompletion.java", "registryKeyId.xml"); assertContainsElements(variants, "my.plugin.key", "vcs.showConsole"); final LookupElementPresentation plugin = getLookupElementPresentation("my.plugin.key"); assertEquals(" My description", plugin.getTailText()); assertEquals("myDefaultValue", plugin.getTypeText()); assertEquals(AllIcons.Nodes.PluginRestart, plugin.getIcon()); final LookupElementPresentation properties = getLookupElementPresentation("vcs.showConsole"); assertEquals(" Show 'Console' tab in VCS toolwindow that logs all write-commands performed by IDE.", properties.getTailText()); assertEquals("true", properties.getTypeText()); assertEquals(AllIcons.Nodes.Plugin, properties.getIcon()); }