void () { myFixture.configureByText("test.md_hack", "fi<caret>"); new ListTemplatesAction().actionPerformedImpl(myFixture.getProject(), myFixture.getEditor()); List<String> lookupElementStrings = myFixture.getLookupElementStrings(); assertContainsElements(lookupElementStrings, "fieldset"); assertDoesntContain(lookupElementStrings, "!", "div", "doctype", "input", "movie", "opt", "select"); LookupElement[] lookupElements = myFixture.getLookupElements(); assertNotNull(lookupElements); myFixture.getLookup().setCurrentItem(ContainerUtil.find(lookupElements, element -> "fieldset".equalsIgnoreCase(element.getLookupString()))); myFixture.finishLookup(Lookup.NORMAL_SELECT_CHAR); myFixture.checkResult(""" <fieldset id="${1/[[:alpha:]]+|( )/(?1:_:\\L$0)/g}" ${2:class="${3:}"}> \t<legend>${1:$TM_SELECTED_TEXT}</legend> \t \t$0 </fieldset>"""); }