This duplication is needed to support 'M-?' (xref-find-references) in ts-modes: