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;
} else {
//This should only happen in tests.
source = StringUtils.indentTo(source, indent, false);