code: @NonNull
      private Pair<Integer, Integer> addViewSpacing(@NonNull final Area previousArea,
                                                    @NonNull final View previousView,
                                                    @NonNull final Area area) {
          int scrollViewPaddingTop = 0;
          int scrollViewMarginBottom = 0;
          int padding = -1;
  
          if (previousArea == Area.TITLE) {
              padding = getResources().getDimensionPixelSize(R.dimen.dialog_title_bottom_padding);
          } else if (previousArea == Area.MESSAGE) {
              padding = getResources().getDimensionPixelSize(R.dimen.dialog_message_bottom_padding);
          }
  
          if (previousArea != Area.HEADER && !scrollableArea.isScrollable(previousArea) &&
                  scrollableArea.isScrollable(area)) {
              int originalPadding = padding;
              padding = originalPadding / 2;
              scrollViewPaddingTop = originalPadding - padding;
          } else if (area == Area.BUTTON_BAR && scrollableArea.isScrollable(previousArea) &&
                  !scrollableArea.isScrollable(area)) {
              int originalPadding = padding;
              padding = originalPadding / 2;
              scrollViewMarginBottom = originalPadding - padding;
          }
  
          if (padding != -1) {
              previousView.setPadding(previousView.getPaddingLeft(), previousView.getPaddingTop(),
                      previousView.getPaddingRight(), previousView.getPaddingBottom() + padding);
          }
  
          return Pair.create(scrollViewPaddingTop, scrollViewMarginBottom);
      }
docs: Adds spacing to the view of a specific area. The spacing is added to the view's current
  bottom padding.
  
  @param previousArea
  The area, the view, the spacing should be applied to, corresponds to, as an instance
  of the class {@link Area}. The area may not be null
  @param previousView
  The view, the spacing should be applied to, as an instance of the class {@link View}.
  The view may not be null
  @param area
  The current area as a value of the enum {@link Area}. The area may not be null
  @return A pair, which contains the top and bottom padding, which should be added to the
  dialog's scroll view, as an instance of the class {@link Pair} value