public List<Symbol> getSymbolReferences(Symbol definition) {
        List<Symbol> results = symbolReferences.get(definition);

        if (results == null) return new ArrayList<>();

        return List.copyOf(results);
    }
Returns a list of symbol references for the given symbol definition.

@param definition The symbol for which to retrieve the references.
@return A list of symbol references.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/index/SchemaIndex.java