function getMatchesForImport(
  baseClasses,
  decorators,
  functions,
  importSpecifier,
  filename,
  rootDir,
) {
  return {
    baseClasses: baseClasses.filter(
      baseClass =>
        baseClass.import && isMatchingImport(importSpecifier, baseClass.import, filename, rootDir),
    ),
    decorators: decorators.filter(
      decorator =>
        decorator.import && isMatchingImport(importSpecifier, decorator.import, filename, rootDir),
    ),
    functions: functions.filter(
      func => func.import && isMatchingImport(importSpecifier, func.import, filename, rootDir),
    ),
  };
}
@param {BaseClass[]} baseClasses
@param {Decorator[]} decorators
@param {FunctionOption[]} functions
@param {string} importSpecifier
@param {string} filename
@param {string} rootDir