private static boolean isEqualSizes(DiffElement<?> file1, DiffElement<?> file2) {
    return file1.getSize() == file2.getSize();
  }
private static boolean isEqualSizes(DiffElement<?> file1, DiffElement<?> file2)