code: static String convertSQLWithLocalizedUnicodeCollator(String sql) {
      Matcher matcher = COLLATE_LOCALIZED_UNICODE_PATTERN.matcher(sql);
      return matcher.replaceAll(" COLLATE NOCASE");
    }
docs: Convert SQL with phrase COLLATE LOCALIZED or COLLATE UNICODE to COLLATE NOCASE.