void () { myFixture.configureByText("a.py", "<caret>"); TemplateManager manager = TemplateManager.getInstance(myFixture.getProject()); Template template = manager.createTemplate("empty", "user", "$S$ comment $E$"); template.addVariable("S", "commentStart()", "", false); template.addVariable("E", "commentEnd()", "", false); manager.startTemplate(myFixture.getEditor(), template); myFixture.checkResult("# comment "); }