}
if (targetEditor != null) {
String creationStr = getCreationStr();
Region region = new Region(offset, len);
PyDocumentTemplateContext context = PyTemplateCompletionProcessor.createContext(new PyContextType(),
targetEditor.getPySourceViewer(), region, indent);
Template template = new Template("Create " + creationStr, "Create " + creationStr, "", source, true);
TemplateProposal templateProposal = new TemplateProposal(template, context, region, null);
return templateProposal;