boolean (@NotNull Change change, @NotNull FilePath file, boolean isDeleted) { ContentRevision revision = isDeleted ? change.getBeforeRevision() : change.getAfterRevision(); if (revision == null) return false; return file.equals(revision.getFile()); }