private boolean findDefinitionIn(RankProfile profile) {
        for (var entry : profile.definedFunctions().entrySet()) {
            // TODO: Resolve the right function in the list by parameter count
            if (entry.getKey().equals(functionNameToFind) && entry.getValue().size() > 0)
                processor().process(new UsageInfo(entry.getValue().get(0).definition()));
        }
        return true;
    }
Finds the definition of a function.

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