void () { final String templateContent = """ { "foo": "$1$" }"""; createJsonTemplate("foo", "foo", templateContent); myFixture.configureByText(JsonFileType.INSTANCE, "foo<caret>"); final Editor editor = myFixture.getEditor(); new ListTemplatesAction().actionPerformedImpl(getProject(), editor); final LookupImpl lookup = (LookupImpl)LookupManager.getActiveLookup(editor); assertNotNull(lookup); lookup.finishLookup(Lookup.NORMAL_SELECT_CHAR); myFixture.checkResult(templateContent.replaceAll("\\$.*?\\$", "")); }