static bool isExtendedUnicodeCharacter(S s, int idx) { ret Character.charCount(s.codePointAt(idx)) > 1; }