code: @NonNull
      private OnGlobalLayoutListener createScrollViewLayoutListener(@NonNull final View view) {
          return new OnGlobalLayoutListener() {
  
              @Override
              public void onGlobalLayout() {
                  ViewUtil.removeOnGlobalLayoutListener(view.getViewTreeObserver(), this);
                  adaptDividerVisibilities();
              }
  
          };
      }
docs: Creates and returns a {@link OnGlobalLayoutListener}, which allows to adjust the initial
  visibility of the dividers, when a view has been layouted.
  
  @param view
  The observed view as an instance of the class {@link View}. The view may not be null
  @return The listener, which has been created, as an instance of the type {@link
  OnGlobalLayoutListener}. The listener may not be null