docs: private static boolean validSurrogatePairAt(CharSequence string, int index) {
      return index >= 0
          && index <= (string.length() - 2)
          && isHighSurrogate(string.charAt(index))
          && isLowSurrogate(string.charAt(index + 1));
    }