docs: public static boolean isBlack(BufferedImage image, int x, int y) {
          if (image.getType() == BufferedImage.TYPE_BYTE_BINARY) {
              WritableRaster raster = image.getRaster();
              int pixelRGBValue = raster.getSample(x, y, 0);
              return pixelRGBValue == 0;
          }
  
          int luminanceValue = 140;
          return isBlack(image, x, y, luminanceValue);
      }