@Nullable
  private static List<? extends Range> getChangedRangesFromLineStatusTracker(@NotNull Project project,
                                                                             @NotNull Document document,
                                                                             @NotNull Change change) {
    LineStatusTracker<?> tracker = LineStatusTrackerManager.getInstance(project).getLineStatusTracker(document);
    if (tracker == null) return null;

    if (change instanceof ChangeListChange &&
        tracker instanceof PartialLocalLineStatusTracker) {
      String changeListId = ((ChangeListChange)change).getChangeListId();
      List<LocalRange> ranges = ((PartialLocalLineStatusTracker)tracker).getRanges();
      if (ranges == null) return null;

      return ContainerUtil.filter(ranges, range -> range.getChangelistId().equals(changeListId));
    }
    else {
      return tracker.getRanges();
    }
  }
@Nullable
  private static List<? extends Range> getChangedRangesFromLineStatusTracker(@NotNull Project project,
                                                                             @NotNull Document document,
                                                                             @NotNull Change change)