@Nullable
  @Override
  public List<LineFragment> compare(@NotNull CharSequence text1,
                                    @NotNull CharSequence text2,
                                    @NotNull ProgressIndicator indicator) {
    LineOffsets lineOffsets1 = LineOffsetsUtil.create(text1);
    LineOffsets lineOffsets2 = LineOffsetsUtil.create(text2);

    List<List<LineFragment>> fragments = doCompare(text1, text2, lineOffsets1, lineOffsets2, null, indicator);

    if (fragments == null) return null;

    assert fragments.size() == 1;
    return fragments.get(0);
  }
@Nullable
  @Override
  public List<LineFragment> compare(@NotNull CharSequence text1,
                                    @NotNull CharSequence text2,
                                    @NotNull ProgressIndicator indicator)