default boolean isOverride() {
        String functionName = this.getName();
        SdRankProfileDefinition thisRankProfile = PsiTreeUtil.getParentOfType(this, SdRankProfileDefinition.class);
        if (thisRankProfile == null) return false;
        for (var parentProfile : new RankProfile(thisRankProfile, null).parents().values()) {
            if (containsFunction(functionName, parentProfile))
                return true;
        }
        return false;
    }
A function's declaration in the SD language.

@author Shahar Ariel
integration/intellij/src/main/java/ai/vespa/intellij/schema/psi/SdFunctionDefinitionInterface.java