boolean (@NotNull DiffNavigationContext context) { ChangedLinesIterator changedLinesIterator = new ChangedLinesIterator(); int line = context.contextMatchCheck(changedLinesIterator); if (line == -1) { // this will work for the case, when spaces changes are ignored, and corresponding fragments are not reported as changed // just try to find target line -> +- AllLinesIterator allLinesIterator = new AllLinesIterator(getEditor(Side.RIGHT).getDocument()); line = context.contextMatchCheck(allLinesIterator); } if (line == -1) return false; scrollToLine(Side.RIGHT, line); return true; }