void (@NotNull LineStatusTrackerI<?> tracker, @NotNull Editor editor, @Nullable Range range) { if (range == null) { //noinspection unchecked List<Range> ranges = (List<Range>)tracker.getRangesForLines(DiffUtil.getSelectedLines(editor)); if (ranges == null || ranges.isEmpty()) return; Range start = ranges.get(0); Range end = ranges.get(ranges.size() - 1); range = new Range(start.getLine1(), end.getLine2(), start.getVcsLine1(), end.getVcsLine2()); } LineStatusMarkerPopupActions.showDiff(tracker, range); }