boolean () { if (myNavigationContext == null) return false; List<UnifiedDiffChange> changes = myModel.getDiffChanges(); if (changes == null) return false; ChangedLinesIterator changedLinesIterator = new ChangedLinesIterator(changes); int line = myNavigationContext.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(getContent2().getDocument()); line = myNavigationContext.contextMatchCheck(allLinesIterator); } if (line == -1) return false; doScrollToLine(Side.RIGHT, new LogicalPosition(line, 0)); return true; }