void () { myFixture.configureByText("a.java", """ class A { int x; A(int x) { this.x = x; } class B extends A{ B(int x) { super(f<caret>oo(x)); } } } """); TemplateManagerImpl.setTemplateTesting(getTestRootDisposable()); doAction("Create method 'foo' in 'A'"); TemplateManagerImpl.getTemplateState(getEditor()).gotoEnd(false); myFixture.checkResult(""" class A { int x; A(int x) { this.x = x; } class B extends A{ B(int x) { super(foo(x)); } } private static int foo(int x) { return 0; } } """); }