docs: private int updateSpecWithExtra(int spec, int startInset, int endInset) {
          if (startInset == 0 && endInset == 0) {
              return spec;
          }
          final int mode = View.MeasureSpec.getMode(spec);
          if (mode == View.MeasureSpec.AT_MOST || mode == View.MeasureSpec.EXACTLY) {
              int size = View.MeasureSpec.getSize(spec);
              if (size - startInset - endInset < 0) {
                  return View.MeasureSpec.makeMeasureSpec(0, mode);
              } else {
                  return View.MeasureSpec.makeMeasureSpec(
                          View.MeasureSpec.getSize(spec) - startInset - endInset, mode);
              }
          }
          return spec;
      }