void () { myFixture.configureByText("a.java", """ class X { void test() { int i <selection>=</selection> 5; } } """); TemplateActionContext templateActionContext = TemplateActionContext.surrounding(getFile(), getEditor()); List<TemplateImpl> templates = TemplateManagerImpl.listApplicableTemplates(templateActionContext); assert DefaultGroovyMethods.equals(templates, new ArrayList<>()); }