public List<Symbol> listSymbolsInScope(Symbol scope, EnumSet<SymbolType> types) {
        List<Symbol> ret = new ArrayList<>();
        for (SymbolType type : types) {
            ret.addAll(symbolDefinitions.get(type)
                                    .stream()
                                    .filter(symbol -> isInScope(symbol, scope))
                                    .toList()
            );
        }
        return ret;
    }
Searches for symbols in the specified scope of one of the given types.

@param scope The symbol representing the scope to search in. If null it will return all symbols with the given type.
@param types The types of symbols to find.
@return A list of symbols found in the specified scope and of one of the given types.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/index/SchemaIndex.java