docs: private static File[] safeListFiles(final File file) {
          final File[] children = file.listFiles();
          if (children != null) {
              return children;
          } else {
              throw new IllegalArgumentException(String.format("Unable to retrieve contents of directory '%s'.",
                                                               file.getAbsolutePath()));
          }
      }