public static BufferedImage createShadow(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);
  }
public static BufferedImage createShadow(final JComponent c, final int width, final int height, boolean isPopup)