void () { if (!myUpdateScheduled.get() && myRepaintScheduled.compareAndSet(false, true)) { SwingUtilities.invokeLater(() -> { myRepaintScheduled.set(false); if (this == myPane) { repaintRenderer(); } }); } }