Collection<Change> (@NotNull FilePath path) { List<Change> changes = new ArrayList<>(); for (Change change : getAllChanges()) { ContentRevision before = change.getBeforeRevision(); ContentRevision after = change.getAfterRevision(); if (before != null && before.getFile().isUnder(path, false) || after != null && after.getFile().isUnder(path, false)) { changes.add(change); } } return changes; }