code: private void adaptDividerVisibilities(final boolean scrolledToTop,
                                            final boolean scrolledToBottom, final boolean animate) {
          if (topDivider != null && !topDivider.isVisibleByDefault()) {
              topDivider.setVisibility(
                      scrolledToTop || !showDividersOnScroll ? View.INVISIBLE : View.VISIBLE,
                      animate);
          }
  
          if (bottomDivider != null && !bottomDivider.isVisibleByDefault()) {
              bottomDivider.setVisibility(
                      scrolledToBottom || !showDividersOnScroll ? View.INVISIBLE : View.VISIBLE,
                      animate);
          }
      }
docs: Adapts the visibility of the top and bottom divider, depending on whether the scrollable area
  is scrolled to the top/bottom, or not.
  
  @param scrolledToTop
  True, if the scrollable area is scrolled to the top, false otherwise
  @param scrolledToBottom
  True, if the scrollable area is scrolled to the bottom, false otherwise
  @param animate
  True, if the visibility should be changed in an animated manner, false otherwise