function getCategoriesForMatchedSpecifier(specifierRes, { metaConfig }) {
  const resultCats = [];

  if (metaConfig && metaConfig.categoryConfig) {
    const { project, filePath, name } = specifierRes.exportSpecifier;
    // First of all, do we have a matching project?
    // TODO: we should allow different configs for different (major) versions
    const match = metaConfig.categoryConfig.find(cat => cat.project === project);
    if (match) {
      Object.entries(match.categories).forEach(([categoryName, matchFn]) => {
        if (matchFn(filePath, name)) {
          resultCats.push(categoryName);
        }
      });
    }
  }
  return resultCats;
}
@param {{ project:string, filePath:string, name:string }} specifierRes
@param {{ categoryConfig:object }} metaConfig
@returns {string[]}