Set<FilePath> () { Changes changesObject = getChangesObject(); if (changesObject instanceof UnparsedChanges) { Set<FilePath> result = new HashSet<>(); for (VcsFileStatusInfo statusInfo : ((UnparsedChanges)changesObject).getMergedStatuses()) { result.add(GitContentRevision.createPath(getRoot(), statusInfo.getFirstPath())); String secondPath = statusInfo.getSecondPath(); if (secondPath != null) { result.add(GitContentRevision.createPath(getRoot(), secondPath)); } } return result; } Set<FilePath> result = new HashSet<>(); for (Change change : getChanges()) { FilePath beforePath = ChangesUtil.getBeforePath(change); if (beforePath != null) result.add(beforePath); FilePath afterPath = ChangesUtil.getAfterPath(change); if (afterPath != null) result.add(afterPath); } return result; }