public static void main(String[] args) {
    if (args.length != 3 && args.length != 2) {
      System.out.println(InspectionsBundle.message("inspection.diff.format.error"));
    }

    String oldPath = args[0];
    String newPath = args[1];
    String outPath = args.length == 3 ? args[2] : null;

    final File oldResults = new File(oldPath);
    final File newResults = new File(newPath);
    if (oldResults.isDirectory() && newResults.isDirectory()) {
      final File[] old = oldResults.listFiles();
      final File[] results = newResults.listFiles();
      for (File result : results) {
        final String inspectionName = result.getName();
        boolean found = false;
        for (File oldFile : old) {
          if (oldFile.getName().equals(inspectionName)) {
            writeInspectionDiff(oldFile.getPath(), result.getPath(), outPath);
            found = true;
            break;
          }
        }
        if (!found) {
          writeInspectionDiff(null, result.getPath(), outPath);
        }
      }
    }
  }
public static void main(String[] args)