docs: private CloseableReference<Bitmap> createBitmap(
        DisplayMetrics display,
        int width,
        int height,
        Bitmap.Config config,
        boolean hasAlpha,
        @Nullable Object callerContext) {
      checkWidthHeight(width, height);
      CloseableReference<Bitmap> bitmapRef = createBitmapInternal(width, height, config);
  
      Bitmap bitmap = bitmapRef.get();
      if (display != null) {
        bitmap.setDensity(display.densityDpi);
      }
  
      if (Build.VERSION.SDK_INT >= 12) {
        bitmap.setHasAlpha(hasAlpha);
      }
  
      if (config == Bitmap.Config.ARGB_8888 && !hasAlpha) {
        bitmap.eraseColor(0xff000000);
      }
  
      return bitmapRef;
    }