public static @NotNull String sanitizeIllegalXmlChars(@NotNull String text) {
    if (Verifier.checkCharacterData(text) == null) return text;
    return text.codePoints().map(cp -> Verifier.isXMLCharacter(cp) ? cp : '?')
      .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();
  }
public static @NotNull String sanitizeIllegalXmlChars(@NotNull String text)