Change (FilePath file) { for (Change change : getAllChanges()) { ContentRevision before = change.getBeforeRevision(); ContentRevision after = change.getAfterRevision(); if (after != null && after.getFile().equals(file) || before != null && before.getFile().equals(file)) { return change; } } return null; }