Object (@NotNull String dataId) { // Make changes available for diff action if (VcsDataKeys.CHANGES.is(dataId)) { int[] rows = myTable.getSelectedRows(); if (rows.length != 1) return null; int row = rows[0]; VcsFullCommitDetails commit = myCommits.get(row); return commit.getChanges().toArray(Change.EMPTY_CHANGE_ARRAY); } return null; }