public Map<String, RankProfile> parents() {
        if (parents != null) return parents;
        if (owner == null) return Map.of(); // Some code paths do not yet instantiate from a schema
        return parents = AST.inherits(definition).stream()
                            .map(parentIdentifierAST -> parentIdentifierAST.getPsi().getReference())
                            .filter(reference -> reference != null)
                            .map(reference -> owner.rankProfiles().get(reference.getCanonicalText()))
                            .filter(profile -> profile != null)
                            .collect(Collectors.toMap(profile -> profile.name(), profile -> profile));
    }
Returns the profiles inherited by this.

@return the profiles this inherits from, empty if none
integration/intellij/src/main/java/ai/vespa/intellij/schema/model/RankProfile.java