code: public static Bitmap clipSquare(@NonNull final Bitmap bitmap) {
          Condition.INSTANCE.ensureNotNull(bitmap, "The bitmap may not be null");
          return clipSquare(bitmap,
                  bitmap.getWidth() >= bitmap.getHeight() ? bitmap.getHeight() : bitmap.getWidth());
      }
docs: Clips the long edge of a bitmap, if its width and height are not equal, in order to form it
  into a square.
  
  @param bitmap
  The bitmap, which should be clipped, as an instance of the class {@link Bitmap}. The
  bitmap may not be null
  @return The clipped bitmap as an instance of the class {@link Bitmap}