<BUG>addToValueSet(newTypeReferences, variable.getType().getName(), symbol);symbols.add(symbol);});}newFileSymbols.put(workspaceUriSupplier.get(sourceUri), symbols);</BUG><CONTEXT>if (scriptClass != null) {sourceUnit.getAST().getStatementBlock().getVariableScope().getDeclaredVariables().values().forEach(variable -> {SymbolInformation symbol =getVariableSymbolInformation(scriptClass.getName(), sourceUri, variable);<extra_id_0>});</CONTEXT>
newIndexer.addSymbol(sourceUnit.getSource().getURI(), symbol);if (classes.containsKey(variable.getType().getName())) {newIndexer.addReference(classes.get(variable.getType().getName()),GroovyLocations.createLocation(sourceUri, variable.getType()));