SimpleThreesideDiffChange (@NotNull ThreeSide side, int line) { for (SimpleThreesideDiffChange change : myViewer.getChanges()) { int startLine = change.getStartLine(side); int endLine = change.getEndLine(side); if (DiffUtil.isSelectedByLine(line, startLine, endLine) && change.isChange(side)) { return change; } } return null; }