public boolean inherits(String name) {
        for (RankProfile inheritedProfile : inherited()) {
            if (inheritedProfile.name().equals(name)) return true;
            if (inheritedProfile.inherits(name)) return true;
        }
        return false;
    }
Returns whether this profile inherits (directly or indirectly) the given profile name.
config-model/src/main/java/com/yahoo/schema/RankProfile.java