public MatchPhaseSettings getMatchPhase() {
        if (matchPhase != null) return matchPhase;
        return uniquelyInherited(RankProfile::getMatchPhase, "match phase settings").orElse(null);
    }
Returns whether this profile inherits (directly or indirectly) the given profile name.
config-model/src/main/java/com/yahoo/schema/RankProfile.java