void (@NotNull String textToType, @Nullable Class<? extends PostfixTemplate> expectedClass) { configureByFile(); type(textToType); LookupImpl lookup = getLookup(); if (expectedClass != null) { assertNotNull(lookup); LookupElement item = lookup.getCurrentItem(); assertNotNull(item); assertInstanceOf(item, PostfixTemplateLookupElement.class); assertInstanceOf(((PostfixTemplateLookupElement)item).getPostfixTemplate(), expectedClass); } else { assertNull(lookup); } }