docs: public static I_CmsFormatterBean getFormatterForContainer(
          CmsObject cms,
          CmsContainerElementBean element,
          CmsContainer container,
          CmsADEConfigData config,
          CmsADESessionCache cache) {
  
          I_CmsFormatterBean formatter = null;
          CmsFormatterConfiguration formatterSet = config.getFormatters(cms, element.getResource());
          Map<String, I_CmsFormatterBean> formatters = formatterSet.getFormatterSelection(
              container.getType(),
              container.getWidth());
          String formatterId = element.getIndividualSettings().get(
              CmsFormatterConfig.getSettingsKeyForContainer(container.getName()));
          if (formatterId != null) {
              if (CmsUUID.isValidUUID(formatterId)) {
                  formatter = OpenCms.getADEManager().getCachedFormatters(false).getFormatters().get(
                      new CmsUUID(formatterId));
              } else {
                  formatter = formatters.get(formatterId);
              }
          }
          if (formatter == null) {
              formatterId = element.getIndividualSettings().get(CmsFormatterConfig.FORMATTER_SETTINGS_KEY);
              if (formatterId != null) {
                  formatter = formatters.get(formatterId);
              }
          }
          if (formatter == null) {
              // check for formatter config id stored for other containers matching the current container
              for (Entry<String, String> settingsEntry : element.getIndividualSettings().entrySet()) {
                  if (settingsEntry.getKey().startsWith(CmsFormatterConfig.FORMATTER_SETTINGS_KEY)) {
                      formatter = formatters.get(settingsEntry.getValue());
                      if (formatter != null) {
                          break;
                      }
                  }
              }
          }
          if ((formatter == null) && (element.getFormatterId() != null)) {
              for (I_CmsFormatterBean currentFormatter : formatters.values()) {
                  if ((currentFormatter.getJspStructureId() != null)
                      && currentFormatter.getJspStructureId().equals(element.getFormatterId())) {
                      formatter = currentFormatter;
                      break;
                  }
              }
          }
          if (formatter == null) {
              formatter = getStartFormatter(cms, container, config, element, cache);
          }
          return formatter;
      }