How to keep Problems Tool Window entries for multiple files in a plugin on the go?

In the Problems tool window, the File tab only shows issues for the currently active file.
As soon as I switch to another file, the previous file’s errors are no longer visible.

I am developing an IntelliJ plugin, and I want to persist problems for all files that my plugin analyzes — not just the currently open one. My plugin performs checks continuously while the user is typing, and issues are detected in the background.

I am developing a custom IntelliJ plugin that defines a LocalInspectionTool.
The inspection works correctly, I want to keep storing those problems in the Problems tool window of intellije IDE and erase when required.

Is there a way for a plugin to collect and store problems across multiple files in the Problems tool window.

In short:
How can I push my own problems into the Problems Tool Window and keep them visible for multiple files simultaneously, while scanning runs continuously?

Is this possible with the intellije Problem Window itself ?

Any guidance or examples would be appreciated.

@robert.novotny @jansorg

I don’t have exact experience, but Local Inspections operate on a single file.

Try to explore global inspections that target multiple files. The extension point is com.intellij.globalInspection.