boolean (@NotNull Component component) { if (SystemInfoRt.isLinux) { return true; } String[] supportedNonEnglishLanguages; if (SystemInfoRt.isMac) { supportedNonEnglishLanguages = MAC_SUPPORTED_LOCALES; } else if (SystemInfoRt.isWindows) { supportedNonEnglishLanguages = WIN_SUPPORTED_LOCALES; } else { return false; } String keyboardLayoutLanguage = getLanguageForComponent(component); return ArrayUtil.contains(keyboardLayoutLanguage, supportedNonEnglishLanguages); }