public void insertSymbolDefinition(Symbol symbol) {

        List<Symbol> list = symbolDefinitions.get(symbol.getType());
        list.add(symbol);

        symbolReferences.put(symbol, new ArrayList<>());

        if (symbol.getType() == SymbolType.FIELD) {
            fieldIndex.insertFieldDefinition(symbol);
        }
    }
Inserts a symbol definition into the schema index.

@param symbol the symbol to be inserted
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/index/SchemaIndex.java