docs: public static I_CmsFormatterBean getFormatterConfigurationForElement(
          CmsObject cms,
          CmsContainerElementBean element,
          CmsADEConfigData adeConfig,
          String containerName,
          String containerType,
          int containerWidth) {
  
          I_CmsFormatterBean formatterBean = null;
          String settingsKey = CmsFormatterConfig.getSettingsKeyForContainer(containerName);
          if ((element.getFormatterId() != null) && !element.getFormatterId().isNullUUID()) {
  
              if (!element.getSettings().containsKey(settingsKey)
                  || element.getSettings().get(settingsKey).startsWith(CmsFormatterConfig.SCHEMA_FORMATTER_ID)) {
                  for (I_CmsFormatterBean formatter : adeConfig.getFormatters(
                      cms,
                      element.getResource()).getAllMatchingFormatters(containerType, containerWidth)) {
                      if (element.getFormatterId().equals(formatter.getJspStructureId())) {
                          String formatterConfigId = formatter.getId();
                          if (formatterConfigId == null) {
                              formatterConfigId = CmsFormatterConfig.SCHEMA_FORMATTER_ID
                                  + element.getFormatterId().toString();
                          }
                          formatterBean = formatter;
                          break;
                      }
                  }
              } else {
                  String formatterConfigId = element.getSettings().get(settingsKey);
                  if (CmsUUID.isValidUUID(formatterConfigId)) {
                      formatterBean = OpenCms.getADEManager().getCachedFormatters(
                          cms.getRequestContext().getCurrentProject().isOnlineProject()).getFormatters().get(
                              new CmsUUID(formatterConfigId));
                  }
              }
          } else {
              if (element.getSettings().containsKey(settingsKey)) {
                  String formatterConfigId = element.getSettings().get(settingsKey);
                  if (CmsUUID.isValidUUID(formatterConfigId)) {
                      formatterBean = OpenCms.getADEManager().getCachedFormatters(
                          cms.getRequestContext().getCurrentProject().isOnlineProject()).getFormatters().get(
                              new CmsUUID(formatterConfigId));
                  }
              }
              if (formatterBean == null) {
                  formatterBean = adeConfig.getFormatters(cms, element.getResource()).getDefaultFormatter(
                      containerType,
                      containerWidth);
              }
          }
          return formatterBean;
      }