code: Map<String, String> getSettingsToChangeForDnd(
          Map<String, String> originalSettings,
          CmsFormatterConfiguration formatterConfig,
          Collection<CmsContainer> containers,
          String dndContainer) {
  
          Map<String, String> result = Maps.newHashMap();
          if (dndContainer == null) {
              return result;
          }
          String key = CmsFormatterConfig.getSettingsKeyForContainer(dndContainer);
          String formatterId = originalSettings.get(key);
          if (formatterId == null) {
              return result;
          }
          for (CmsContainer container : containers) {
              if (container.getName().equals(dndContainer)) {
                  continue;
              }
              Map<String, I_CmsFormatterBean> formatterSelection = formatterConfig.getFormatterSelection(
                  container.getType(),
                  container.getWidth());
              if (formatterSelection.containsKey(formatterId)) {
                  String newKey = CmsFormatterConfig.getSettingsKeyForContainer(container.getName());
                  result.put(newKey, formatterId);
              }
          }
          return result;
      }
docs: Gets the settings which should be updated for an element in the DND case.<p>
  
  @param originalSettings the original settings
  @param formatterConfig the formatter configuration for the element
  @param containers the containers
  @param dndContainer the id of the DND origin container
  
  @return the map of settings to update