code: private void adaptHeaderDividerVisibility() {
          if (headerDivider != null) {
              headerDivider.setVisibility(showHeaderDivider ? View.VISIBLE : View.GONE);
          }
      }
docs: Adapts the visibility of the divider of the dialog's header.