code: private void adaptDividerMargin(@Nullable final Divider divider) {
          if (divider != null) {
              ViewGroup.LayoutParams layoutParams = divider.getLayoutParams();
  
              if (layoutParams instanceof LayoutParams) {
                  ((LayoutParams) layoutParams).leftMargin = dividerMargin;
                  ((LayoutParams) layoutParams).rightMargin = dividerMargin;
              }
          }
      }
docs: Adapts the left and right margin of a specific divider.
  
  @param divider
  The divider, whose left and right margin should be adapted, as an instance of the
  class {@link Divider}