Checks whether a config entry inherits, directly or indirectly, from another one.
Unlike the standard inheritsFrom command, this checks the entire ancestry.