void (Graphics g) { super.paintComponent(g); if (myDrawCopyIcon) { Rectangle rect = getBounds(); g.setColor(JBColor.background()); g.fillRect(rect.width - myCopyIconPlateSize, rect.height - myCopyIconPlateSize, myCopyIconPlateSize, myCopyIconPlateSize); int offset = (myCopyIconPlateSize + myCopyIconSize) / 2; AllIcons.General.CopyHovered.paintIcon(this, g, rect.width - offset, rect.height - offset); } }