private static boolean checkIfLocaleAvailable(String candidateLanguageTerritory) {
    return ContainerUtil.exists(Locale.getAvailableLocales(), l -> Objects.equals(l.toString(), candidateLanguageTerritory)) &&
           new File(MAC_OS_LOCALE_PATH, candidateLanguageTerritory).exists();
  }
private static boolean checkIfLocaleAvailable(String candidateLanguageTerritory)