code: public StaticTypedScope createScopeWithTemplates(
        StaticTypedScope scope, Iterable<TemplateType> templates) {
      return new SyntheticTemplateScope(scope, templates);
    }
docs: Returns a new scope that includes the given template names for type resolution
  purposes.