code: public final void setIcon(@Nullable final Bitmap icon) {
          if (icon != null) {
              int size = getResources().getDimensionPixelSize(R.dimen.chip_height);
              imageView.setImageBitmap(clipCircle(icon, size));
              imageView.setVisibility(View.VISIBLE);
              textView.setPadding(0, textView.getPaddingTop(), textView.getPaddingRight(),
                      textView.getPaddingBottom());
          } else {
              imageView.setImageBitmap(null);
              imageView.setVisibility(View.GONE);
              textView.setPadding(
                      getResources().getDimensionPixelSize(R.dimen.chip_horizontal_padding),
                      textView.getPaddingTop(), textView.getPaddingRight(),
                      textView.getPaddingBottom());
          }
      }
docs: Sets the chip's icon.
  
  @param icon
  The icon, which should be set, as an instance of the class {@link Bitmap} or null, if
  no icon should be set