function getTagPaths(
  targetFindCustomelementsResult,
  refFindCustomelementsResult,
  refFindExportsResult,
  targetMatchedFile,
  toClass,
  matchSubclassEntry,
) {
  /* eslint-disable arrow-body-style */

  let targetResult;
  targetFindCustomelementsResult.queryOutput.some(({ file, result }) => {
    const targetPathMatch = result.find(entry => {
      const sameRoot = entry.rootFile.file === targetMatchedFile;
      const sameIdentifier = entry.rootFile.specifier === toClass;
      return sameRoot && sameIdentifier;
    });
    if (targetPathMatch) {
      targetResult = { file, tagName: targetPathMatch.tagName };
      return true;
    }
    return false;
  });

  let refResult;
  refFindCustomelementsResult.queryOutput.some(({ file, result }) => {
    const refPathMatch = result.find(entry => {
      const matchSubclassSpecifierRootFile = getExportSpecifierRootFile(
        matchSubclassEntry.exportSpecifier,
        refFindExportsResult,
      );
      if (!matchSubclassSpecifierRootFile) {
        return false;
      }

      const sameRoot = entry.rootFile.file === matchSubclassSpecifierRootFile.file;
      const sameIdentifier = entry.rootFile.specifier === matchSubclassEntry.exportSpecifier.name;

      return sameRoot && sameIdentifier;
    });
    if (refPathMatch) {
      refResult = { file, tagName: refPathMatch.tagName };
      return true;
    }
    return false;
  });

  return { targetResult, refResult };
  /* eslint-enable arrow-body-style */
}
@param {FindCustomelementsAnalyzerResult} targetFindCustomelementsResult
@param {FindCustomelementsAnalyzerResult} refFindCustomelementsResult
@param {FindExportsAnalyzerResult} refFindExportsResult
@param {string} targetMatchedFile file where `toClass` from match-subclasses is defined
@param {string} toClass Identifier exported by target project, for instance `WolfCheckbox`
@param {MatchSubclassEntry} matchSubclassEntry