docs: public static void appendCompactedString(final StringBuilder destination, final String source) {
          boolean previousIsWhiteSpace = false;
          int length = source.length();
  
          for (int i = 0; i < length; i++) {
              char ch = source.charAt(i);
              if (isWhiteSpace(ch)) {
                  if (previousIsWhiteSpace) {
                      continue;
                  }
                  destination.append(CHAR_SPACE);
                  previousIsWhiteSpace = true;
              } else {
                  destination.append(ch);
                  previousIsWhiteSpace = false;
              }
          }
      }