IDEA-115799 diff: fix changes painting over scrollbar in 3-way panel

do not eat 100% of CPU due to recursive calls of repaint() (it was not lead to deadlock, so was not fixed all this time).
(cherry picked from commit 02852c1)