}
});
}
TemplateManager templateManager = TemplateManager.getInstance(project);
Template template = templateManager.createTemplate("", "");
template.setToReformat(true);
template.addTextSegment("\n\n");
template.addTextSegment(myName + "(");
int size = placeHolders.size();
for (int i = 0; i < placeHolders.size(); i++) {
String name = placeHolders.get(i);
template.addVariable("param" + i, new ConstantNode(name), true);
if (i != size - 1) template.addTextSegment(", ");
}
template.addTextSegment(") ->\n");
template.addEndVariable();
template.addTextSegment("error(not_implemented).");
editor.getCaretModel().moveToOffset(topmost.getTextRange().getEndOffset());
templateManager.startTemplate(editor, template);
}
}