code: private View inflateDividerView(@Nullable final ViewGroup parent,
                                      @NonNull final Divider divider, final int position) {
          LayoutInflater layoutInflater = LayoutInflater.from(context);
          View view = layoutInflater.inflate(R.layout.divider, parent, false);
          DividerViewHolder viewHolder = new DividerViewHolder();
          viewHolder.leftDivider = view.findViewById(R.id.left_divider);
          viewHolder.rightDivider = view.findViewById(R.id.right_divider);
          viewHolder.titleTextView = view.findViewById(android.R.id.title);
          view.setTag(viewHolder);
  
          if (!TextUtils.isEmpty(divider.getTitle()) || (position % columnCount > 0 && !TextUtils
                  .isEmpty(getRawItems().get(position - (position % columnCount)).getTitle()))) {
              view.getLayoutParams().height = context.getResources()
                      .getDimensionPixelSize(R.dimen.bottom_sheet_divider_title_height);
          }
  
          return view;
      }
docs: Inflates the view, which is used to visualize a divider.
  
  @param parent
  The parent of the view, which should be inflated, as an instance of the class {@link
  ViewGroup} or null, if no parent is available
  @param divider
  The divider, which should be visualized, as an instance of the class {@link Divider}.
  The divider may not be null
  @param position
  The position of the divider, which should be visualized, as an {@link Integer} value
  @return The view, which has been inflated, as an instance of the class {@link View}