void () { myFixture.configureByText("a.java", """ /**javadoc*/ class A { void m(java.util.List<String> list){ fo<caret>o(list); } }"""); TemplateManagerImpl.setTemplateTesting(getTestRootDisposable()); doAction("Create method 'foo' in 'A'"); TemplateState state = TemplateManagerImpl.getTemplateState(getEditor()); state.gotoEnd(false); myFixture.checkResult(""" import java.util.List; /**javadoc*/ class A { void m(java.util.List<String> list){ foo(list); } private void foo(List<String> list) { \s } }"""); }