private static void logInfoAboutNotAcceptedConfigDirectory(@NotNull Logger log, @NotNull String description, @NotNull Path path) {
    StringBuilder builder = new StringBuilder();
    builder.append(description + " was detected but not accepted: ");
    builder.append(path);
    builder.append(". Its content:\n");
    if (Files.isDirectory(path)) {
      try {
        try (DirectoryStream<Path> stream = Files.newDirectoryStream(path)) {
          for (Path child : stream) {
            builder.append(" ").append(child.getFileName()).append("\n");
            if (Files.isDirectory(child)) {
              try (DirectoryStream<Path> grandChildren = Files.newDirectoryStream(path)) {
                for (Path grandChild : grandChildren) {
                  builder.append(" |- ").append(grandChild.getFileName()).append("\n");
                }
              }
            }
          }
        }
      }
      catch (IOException e) {
        builder.append("failed to get: ").append(e.toString());
      }
    }
    else {
      builder.append("not a directory");
    }
    log.info(builder.toString());
  }
private static void logInfoAboutNotAcceptedConfigDirectory(@NotNull Logger log, @NotNull String description, @NotNull Path path)