function getMemberOverrides(
  refClassesAResult,
  classMatch,
  exportEntry,
  exportEntryResult,
  exportSpecifier,
) {
  if (!classMatch.members) return;
  const { rootFile } = exportEntryResult.rootFileMap.find(
    m => m.currentFileSpecifier === exportSpecifier,
  );

  const classFile = rootFile.file === '[current]' ? exportEntry.file : rootFile.file;

  // check which methods are overridden as well...?
  const entry = refClassesAResult.queryOutput.find(classEntry => classEntry.file === classFile);
  if (!entry) {
    // TODO: we should look in an external project for our classFile definition
    return;
  }

  const originalClass = entry.result.find(({ name }) => name === classMatch.rootFile.specifier);

  const methods = classMatch.members.methods.filter(m =>
    originalClass.members.methods.find(({ name }) => name === m.name),
  );
  const props = classMatch.members.methods.filter(m =>
    originalClass.members.methods.find(({ name }) => name === m.name),
  );

  // eslint-disable-next-line consistent-return
  return { methods, props };
}
@typedef {import('../../../types/index.js').ConciseMatchImportsAnalyzerResult} ConciseMatchImportsAnalyzerResult
@typedef {import('../../../types/index.js').IterableFindExportsAnalyzerEntry} IterableFindExportsAnalyzerEntry
@typedef {import('../../../types/index.js').IterableFindImportsAnalyzerEntry} IterableFindImportsAnalyzerEntry
@typedef {import('../../../types/index.js').PathRelativeFromProjectRoot} PathRelativeFromProjectRoot
@typedef {import('../../../types/index.js').FindClassesAnalyzerResult} FindClassesAnalyzerResult
@typedef {import('../../../types/index.js').FindImportsAnalyzerResult} FindImportsAnalyzerResult
@typedef {import('../../../types/index.js').FindExportsAnalyzerResult} FindExportsAnalyzerResult
@typedef {import('../../../types/index.js').PathFromSystemRoot} PathFromSystemRoot
@typedef {import('../../../types/index.js').MatchImportsConfig} MatchImportsConfig
@typedef {import('../../../types/index.js').AnalyzerName} AnalyzerName
@typedef {import('../../../types/index.js').AnalyzerAst} AnalyzerAst