private @NlsContexts.DialogMessage String canCreateAllFilesForAllLocales() {
    final String name = getBaseName();
    if (name.isEmpty()) {
      return PropertiesBundle.message("create.resource.bundle.base.name.is.empty.error");
    }
    final Set<String> files = getFileNamesToCreate();
    if (files.isEmpty()) {
      return PropertiesBundle.message("create.resource.bundle.no.locales.added.error");
    }
    for (PsiElement element : myDirectory.getChildren()) {
      if (element instanceof PsiFile) {
        if (element instanceof PropertiesFile propertiesFile) {
          final String propertiesFileName = propertiesFile.getName();
          if (files.contains(propertiesFileName)) {
            return PropertiesBundle.message("create.resource.bundle.some.of.files.already.exist.error");
          }
        }
      }
    }
    return null;
  }
private @NlsContexts.DialogMessage String canCreateAllFilesForAllLocales()