@Override
    public CompletableFuture<List<? extends Location>> references(ReferenceParams params) {
        return CompletableFutures.computeAsync((cancelChecker) -> {
            try {
                return SchemaReferences.getReferences(eventContextCreator.createContext(params));
            } catch(InvalidContextException ignore) {
                // Ignore
            }
            return List.of();
        });
    }
SchemaTextDocumentService handles incomming requests from the client.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/SchemaTextDocumentService.java