BufferedImage (final JComponent c, final int width, final int height, boolean isPopup) { if (ShadowJava2DPainter.Companion.enabled()) { return createJava2dShadow(c, width, height); } return ourShadowPainter.createShadow(c, width, height); }