Change (@Nullable FilePath filePath) { Change change = getChangeForPath(filePath); if (change == null) return null; ContentRevision after = change.getAfterRevision(); if (after != null && after.getFile().equals(filePath)) { return change; } return null; }