public void findDefinition() {
        SdRankProfileDefinition profileDefinition = ReadAction.compute(() -> PsiTreeUtil.getParentOfType(referringElement, SdRankProfileDefinition.class));
        if (profileDefinition == null) return;
        Schema schema = ReadAction.compute(() -> resolveSchema(profileDefinition));
        RankProfile profile = ReadAction.compute(() -> schema.rankProfiles().get(profileDefinition.getName()));
        findDefinitionAbove(profile);
    }
Finds the definition of a function.

@author bratseth
integration/intellij/src/main/java/ai/vespa/intellij/schema/findUsages/FunctionDefinitionFinder.java