void (@Nullable DynamicBundle replacements) { if (replacements == null) { return; } Set<String> keySet = replacements.getResourceBundle().keySet(); List<String> replace = new ArrayList<>(keySet.size() * 2); for (String title : keySet) { replace.add(title); replace.add(replacements.getMessage(title)); } //macOS 13.0 Ventura uses Settings instead of Preferences. See IDEA-300314 if (SystemInfo.isMacOSVentura) { replace.add("Prefer.*"); replace.add("Settings..."); } nativeRenameAppMenuItems(ArrayUtilRt.toStringArray(replace)); }