docs: private String generateCollisionMessage(String pid, ConfigID id, RegistryEntry registryEntry,
                                              Map<String, ConfigElementList> conflictMap) {
          StringBuilder builder = new StringBuilder();
  
          if (id == null) {
              builder.append(Tr.formatMessage(tc, "config.validator.foundConflictSingleton", pid));
          } else {
              builder.append(Tr.formatMessage(tc, "config.validator.foundConflictInstance", pid, id.getId()));
          }
          builder.append(LINE_SEPARATOR);
  
          for (Map.Entry<String, ConfigElementList> entry : conflictMap.entrySet()) {
              String attributeName = entry.getKey();
              ConfigElementList configList = entry.getValue();
  
              boolean secureAttribute = isSecureAttribute(registryEntry, attributeName);
  
              if (configList.hasConflict()) {
                  builder.append("  ");
                  builder.append(Tr.formatMessage(tc, "config.validator.attributeConflict", attributeName));
                  builder.append(LINE_SEPARATOR);
  
                  for (ConfigElement element : configList) {
                      Object value = element.getAttribute(attributeName);
                      String docLocation = element.getDocumentLocation();
                      builder.append("    ");
                      if (secureAttribute) {
                          builder.append(Tr.formatMessage(tc, "config.validator.valueConflictSecure", docLocation));
                      } else if (value == null || value.equals("")) {
                          builder.append(Tr.formatMessage(tc, "config.validator.valueConflictNull", docLocation));
                      } else {
                          builder.append(Tr.formatMessage(tc, "config.validator.valueConflict", value, docLocation));
                      }
                      builder.append(LINE_SEPARATOR);
                  }
  
                  builder.append("  ");
                  Object activeValue = configList.getActiveValue();
                  if (secureAttribute) {
                      String activeLoc = configList.getActiveElement().getMergedLocation();
                      builder.append(Tr.formatMessage(tc, "config.validator.activeValueSecure", attributeName, activeLoc));
                  } else if (activeValue == null || activeValue.equals("")) {
                      builder.append(Tr.formatMessage(tc, "config.validator.activeValueNull", attributeName));
                  } else {
                      builder.append(Tr.formatMessage(tc, "config.validator.activeValue", attributeName, activeValue));
                  }
                  builder.append(LINE_SEPARATOR);
              }
          }
  
          return builder.toString();
      }