void (Graphics2D g) { Image image = myImage; if (image != null) { UIUtil.drawImage(g, image, 0, 0, null); } if (myPopupShown) { synchronized (myPopupMutex) { Image popupImage = myPopupImage; if (myPopupShown && popupImage != null) { UIUtil.drawImage(g, popupImage, myPopupBounds.x, myPopupBounds.y, null); } } } }