void () { LiveTemplateCompletionContributor.setShowTemplatesInTests(false, myFixture.getTestRootDisposable()); configureByFile(); type("instanceof"); LookupImpl lookup = getLookup(); assertNotNull(lookup); assertEquals(1, lookup.getItems().size()); LookupElement item = lookup.getCurrentItem(); assertNotNull(item); assertInstanceOf(item, PostfixTemplateLookupElement.class); assertInstanceOf(((PostfixTemplateLookupElement)item).getPostfixTemplate(), InstanceofExpressionPostfixTemplate.class); }