docs: public static List<String> getPathComponents(File file)
    {
      if(file == null) {
        return Collections.emptyList();
      }
      List<String> pathComponents = new ArrayList<String>();
      do {
        pathComponents.add(0, file.getName());
        file = file.getParentFile();
      }
      while(file != null);
      return pathComponents;
    }