public Map<String, List<Function>> functions() {
        Map<String, List<Function>> functions = new HashMap<>();
        for (var profile : rankProfiles().values()) {
            for (var entry : profile.definedFunctions().entrySet())
                functions.computeIfAbsent(entry.getKey(), k -> new ArrayList<>()).addAll(entry.getValue());
        }
        return functions;
    }
Returns the rank profiles in this, defined either inside it or in separate .profile files,
or inherited from the parent schema.
integration/intellij/src/main/java/ai/vespa/intellij/schema/model/Schema.java