Inlay Component Rendering error inside a JBScrollPane

Hi all,
Inside my plugin I’ve an inlay component that render a box with a JEditorPane.
When I put the Editor inside a JBScrollPane and I’m using remote development, the content is not refreshed properly on scrolling, mainly the old text is still rendered and everything looks blurred, until became a full white box. In local development everything looks pretty.

I don’t know where to start investigating it, I’m using remote development on a LInux Machine with Wayland enabled and testing with IJ 2026.2.

So not sure if it’s a Wayland problem, a Remote development issue or my code.

I’m open to any suggestion on how investigate it.

Regards,
Mirko