docs: public void initMargins(Rect margins, View view) {
      LayoutParams layoutParams = view.getLayoutParams();
  
      if (layoutParams instanceof MarginLayoutParams) {
        MarginLayoutParams marginLayoutParams = (MarginLayoutParams) layoutParams;
        initMarginRect(margins, marginLayoutParams);
      } else {
          margins.set(0, 0, 0, 0);
      }
    }