docs: public static Bitmap clipSquare(@NonNull final Bitmap bitmap, final int size,
                                      final int borderWidth, @ColorInt final int borderColor) {
          Condition.INSTANCE.ensureAtLeast(borderWidth, 0, "The border width must be at least 0");
          Bitmap clippedBitmap = clipSquare(bitmap, size);
          Bitmap result = Bitmap.createBitmap(clippedBitmap.getWidth(), clippedBitmap.getHeight(),
                  Bitmap.Config.ARGB_8888);
          Canvas canvas = new Canvas(result);
          float offset = borderWidth / 2.0f;
          Rect src = new Rect(0, 0, clippedBitmap.getWidth(), clippedBitmap.getHeight());
          RectF dst =
                  new RectF(offset, offset, result.getWidth() - offset, result.getHeight() - offset);
          canvas.drawBitmap(clippedBitmap, src, dst, null);
  
          if (borderWidth > 0 && Color.alpha(borderColor) != 0) {
              Paint paint = new Paint();
              paint.setFilterBitmap(false);
              paint.setStyle(Paint.Style.STROKE);
              paint.setStrokeWidth(borderWidth);
              paint.setColor(borderColor);
              offset = borderWidth / 2.0f;
              RectF bounds = new RectF(offset, offset, result.getWidth() - offset,
                      result.getWidth() - offset);
              canvas.drawRect(bounds, paint);
          }
  
          return result;
      }