code: public static String getLocalizedString(String key, Object ... args) {
          return JavacMessages.getDefaultLocalizedString(PrefixKind.COMPILER_MISC.key(key), args);
      }
docs: Find a localized string in the resource bundle.
  Because this method is static, it ignores the locale.
  Use localize(key, args) when possible.
  @param key    The key for the localized string.
  @param args   Fields to substitute into the string.