void (@NotNull PyFunction method) { method = CodeInsightUtilCore.forcePsiPostprocessAndRestoreElement(method); final PsiFile file = method.getContainingFile(); if (file == null) return; final TemplateBuilder builder = TemplateBuilderFactory.getInstance().createTemplateBuilder(method); ParamHelper.walkDownParamArray( method.getParameterList().getParameters(), new ParamHelper.ParamVisitor() { @Override public void visitNamedParameter(PyNamedParameter param, boolean first, boolean last) { builder.replaceElement(param, param.getName()); } } ); final PyStatementList statementList = method.getStatementList(); builder.replaceElement(statementList, PyNames.PASS); PythonTemplateRunner.runTemplate(file, builder); }