How can I make Highlighting run in real time with AI in Rider plugin development?

Our Rider plugin currently has a working AI Analyzer (with Mistral AI API) that can scan the current source code file or the entire project for code style mistakes (the code styles can be defined manually by the user or a document can be uploaded and the AI extracts the rules from the document). We have a tool window with an “Analyze Code” button and on click, all the violations show up and you can either dismiss them, go to that code snippet and mark it as correct or false positive. Now, we are also tasked to make the violations visible in the source code itself with highlights (the violation should be underlined as warning). How would I approach that?

We already made a custom daemon stage process from a previous process where we initially hard coded the rules. It worked with the hard coded rules but I don’t know how to do it with rules and violations that are extracted by AI. We save the extracted rules like this:

[JsonPropertyName(“violations”)] public List Violations { get; set; } = new List();

I’d really appreciate some help and ideas because I really don’t know where to start