code: private View inflateTitleView() {
          if (getRootView() != null) {
              inflateTitleContainer();
  
              if (customTitleView != null) {
                  titleContainer.addView(customTitleView);
              } else if (customTitleViewId != -1) {
                  LayoutInflater layoutInflater = LayoutInflater.from(getContext());
                  View view = layoutInflater.inflate(customTitleViewId, titleContainer, false);
                  titleContainer.addView(view);
              } else {
                  LayoutInflater layoutInflater = LayoutInflater.from(getContext());
                  View view = layoutInflater
                          .inflate(R.layout.material_dialog_title, titleContainer, false);
                  titleContainer.addView(view);
              }
  
              View titleView = titleContainer.findViewById(android.R.id.title);
              titleTextView = titleView instanceof TextView ? (TextView) titleView : null;
              View iconView = titleContainer.findViewById(android.R.id.icon);
              iconImageView = iconView instanceof ImageView ? (ImageView) iconView : null;
              return titleContainer;
          }
  
          return null;
      }
docs: Inflates the view, which is used to show the dialog's title. The view may either be the
  default one or a custom view, if one has been set before.
  
  @return The view, which has been inflated, as an instance of the class {@link View} or null,
  if no view has been inflated