public void publishDiagnostics(String fileURI, List<Diagnostic> diagnostics) {
        insertDocumentIfNotExists(fileURI);

        client.publishDiagnostics(
            new PublishDiagnosticsParams(
                fileURI,
                diagnostics
            )
        );

        documentDiagnostics.get(fileURI).clear();
        documentDiagnostics.get(fileURI).addAll(diagnostics);
    }
SchemaDiagnosticHandler is a wrapper for publishing diagnostics to the client
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/SchemaDiagnosticsHandler.java