private static boolean isChildOf(RankProfile targetProfile, RankProfile thisProfile) {

        if (Objects.equals(thisProfile.name(), targetProfile.name())) return true;
        return thisProfile.parents().values()
                          .stream()
                          .anyMatch(parent -> isChildOf(targetProfile, parent));
    }
Call Hierarchy feature utilities.

@author Shahar Ariel
@author bratseth
integration/intellij/src/main/java/ai/vespa/intellij/schema/hierarchy/SdHierarchyUtil.java