void () { TemplateImpl template = (TemplateImpl)getTemplateManager().createTemplate("a", "b"); template.getTemplateContext().setEnabled(TemplateContextTypes.getByClass(JavaStringContextType.class), true); assert !isApplicable("class Foo {{ <caret> }}", template); assert !isApplicable("class Foo {{ <caret>1 }}", template); assert isApplicable("class Foo {{ \"<caret>\" }}", template); assert isApplicable("class Foo {{ \"\"\"<caret>\"\"\" }}", template); }