void (@NotNull Graphics g, @NotNull Rectangle bounds) { if (transparent()) { Graphics2D g2 = (Graphics2D)g; g2.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR)); g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height); g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER)); } else { g.setColor(myEditor.getBackgroundColor()); g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height); } }