code: protected void updateTypeModeToggle() {
  
          m_typeModeToggle.setVisible(false);
          if (m_types != null) {
              for (CmsResourceTypeBean type : m_types.values()) {
                  if (type.getVisibility() == TypeVisibility.showOptional) {
                      m_typeModeToggle.setVisible(true);
                      return;
  
                  }
              }
          }
      }
docs: Updates the type mode switch.<p>