void (@NotNull Change change, @NotNull Map<Key<?>, Object> context) { ContentRevision afterRevision = change.getAfterRevision(); ContentRevision beforeRevision = change.getBeforeRevision(); FilePath aFile = afterRevision == null ? null : afterRevision.getFile(); FilePath bFile = beforeRevision == null ? null : beforeRevision.getFile(); String afterRevisionName = afterRevision instanceof CurrentContentRevision ? VcsBundle.message("diff.title.local") : getShortHash(afterRevision); context.put(VCS_DIFF_RIGHT_CONTENT_TITLE, getRevisionTitle(afterRevisionName, aFile, null)); context.put(VCS_DIFF_LEFT_CONTENT_TITLE, getRevisionTitle(beforeRevision, bFile, aFile)); }