private static boolean containsNonLatinText(char[] chars, int start, int end) {
    for (int i = start; i < end; i++) {
      if (chars[i] >= 0x2ea /* first non-Latin code point */) return true;
    }
    return false;
  }
private static boolean containsNonLatinText(char[] chars, int start, int end)