Nit: does this function server a purpose? Just call ``CodeTemplateService.GetCodeTemplatesForFile(doc) `` directly?