UpdatedFiles (final Change... changes) { UpdatedFiles files = UpdatedFiles.create(); for(Change change: changes) { final ContentRevision afterRevision = change.getAfterRevision(); if (afterRevision != null) { files.getGroupById(FileGroup.MODIFIED_ID).add(afterRevision.getFile().getIOFile().getPath(), myVcs.getKeyInstanceMethod(), afterRevision.getRevisionNumber()); } else { final ContentRevision beforeRevision = change.getBeforeRevision(); assert beforeRevision != null; files.getGroupById(FileGroup.REMOVED_FROM_REPOSITORY_ID).add(beforeRevision.getFile().getIOFile().getPath(), myVcs.getKeyInstanceMethod(), beforeRevision.getRevisionNumber()); } } return files; }