fn metric_method<'a, C, M>( core: &'a BTreeMap<String, C>, modules: &'a BTreeMap<ModuleInstanceId, BTreeMap<String, M>>, method: &ApiMethod, ) -> Cow<'a, str>