docs: public static BufferedImage toBuffered(RenderedImage pOriginal, int pType) {
          // Don't convert if it already is BufferedImage and correct type
          if ((pOriginal instanceof BufferedImage) && ((BufferedImage) pOriginal).getType() == pType) {
              return (BufferedImage) pOriginal;
          }
          if (pOriginal == null) {
              throw new IllegalArgumentException("original == null");
          }
  
          // Create a buffered image
          BufferedImage image = createBuffered(pOriginal.getWidth(),
                                               pOriginal.getHeight(),
                                               pType, Transparency.TRANSLUCENT);
  
          // Draw the image onto the buffer
          // NOTE: This is faster than doing a raster conversion in most cases
          Graphics2D g = image.createGraphics();
          try {
              g.setComposite(AlphaComposite.Src);
              g.drawRenderedImage(pOriginal, IDENTITY_TRANSFORM);
          }
          finally {
              g.dispose();
          }
  
          return image;
      }