public Optional<Symbol> findSymbolInScope(Symbol scope, SymbolType type, String shortIdentifier) {
        List<Symbol> results = findSymbolsInScope(scope, type, shortIdentifier);
        if (results.isEmpty()) return Optional.empty();

        return Optional.of(results.get(0));
    }
Searches for the specified symbol in the given scope. Checks inherited scopes as well,
but not containing scopes.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/index/SchemaIndex.java