void () { myFixture.configureByText("a.java", """ class X { void test(int a, String b, double[] c) { <caret> } } """); Template template = getTemplateManager().createTemplate("xxx", "user", "System.out.println(\"$TYPES$\");"); template.addVariable("TYPES", "methodParameterTypes()", "", true); startTemplate(template); myFixture.checkResult( "\nclass X {\n void test(int a, String b, double[] c) {\n System.out.println(\"[int, java.lang.String, double[]]\");\n }\n}\n"); }