docs: public static DrawerLayout.LayoutParams processDrawerLayoutParams(DrawerBuilder drawer, DrawerLayout.LayoutParams params) {
          if (params != null) {
              if (drawer.mDrawerGravity != null && (drawer.mDrawerGravity == Gravity.RIGHT || drawer.mDrawerGravity == Gravity.END)) {
                  params.rightMargin = 0;
                  if (Build.VERSION.SDK_INT >= 17) {
                      params.setMarginEnd(0);
                  }
  
                  params.leftMargin = drawer.mActivity.getResources().getDimensionPixelSize(R.dimen.material_drawer_margin);
                  if (Build.VERSION.SDK_INT >= 17) {
                      params.setMarginEnd(drawer.mActivity.getResources().getDimensionPixelSize(R.dimen.material_drawer_margin));
                  }
              }
  
              if (drawer.mDrawerWidth > -1) {
                  params.width = drawer.mDrawerWidth;
              } else {
                  params.width = DrawerUIUtils.getOptimalDrawerWidth(drawer.mActivity);
              }
          }
  
          return params;
      }