List<VcsFileStatusInfo> (@NotNull HgFileRevision revision) { List<VcsFileStatusInfo> firstParentChanges = new ArrayList<>(); for (String file : revision.getModifiedFiles()) { firstParentChanges.add(new VcsFileStatusInfo(Change.Type.MODIFICATION, file, null)); } for (String file : revision.getAddedFiles()) { firstParentChanges.add(new VcsFileStatusInfo(Change.Type.NEW, file, null)); } for (String file : revision.getDeletedFiles()) { firstParentChanges.add(new VcsFileStatusInfo(Change.Type.DELETED, file, null)); } for (Map.Entry<String, String> copiedFile : revision.getMovedFiles().entrySet()) { firstParentChanges.add(new VcsFileStatusInfo(Change.Type.MOVED, copiedFile.getKey(), copiedFile.getValue())); } return firstParentChanges; }