inheritor vs next in line

inheritor

noun
  • Someone who inherits something; an heir. 

  • A class, etc. that derives from another code element through inheritance. 

next in line

How often have the words inheritor and next in line occurred in a corpus of books? (source: Google Ngram Viewer )