This commit makes sure to use the most specific getter if more than one candidate exists. Closes gh-24002