void () { myFixture.addClass( """ package foo; public final class Bar { public static void someMethod() {} public static void someMethod(int a) {} }"""); myFixture.configureByText("a.java", "\n\nclass Foo {\n {\n <caret>\n }\n}\n"); Template template = getTemplateManager().createTemplate("xxx", "user", "foo.Bar.someMethod($END$)"); template.setValue(TemplateImpl.Property.USE_STATIC_IMPORT_IF_POSSIBLE, true); startTemplate(template); myFixture.checkResult(""" import static foo.Bar.someMethod; class Foo { { someMethod(<caret>) } } """); }