docs: @SuppressWarnings("SuspiciousNameCombination")
      public static Bitmap clipSquare(@NonNull final Bitmap bitmap, final int size) {
          Condition.INSTANCE.ensureNotNull(bitmap, "The bitmap may not be null");
          Condition.INSTANCE.ensureAtLeast(size, 1, "The size must be at least 1");
          Bitmap clippedBitmap = bitmap;
          int width = bitmap.getWidth();
          int height = bitmap.getHeight();
  
          if (width > height) {
              clippedBitmap = Bitmap.createBitmap(bitmap, width / 2 - height / 2, 0, height, height);
          } else if (bitmap.getWidth() < bitmap.getHeight()) {
              clippedBitmap =
                      Bitmap.createBitmap(bitmap, 0, bitmap.getHeight() / 2 - width / 2, width,
                              width);
          }
  
          if (clippedBitmap.getWidth() != size) {
              clippedBitmap = resize(clippedBitmap, size, size);
          }
  
          return clippedBitmap;
      }