@NotNull
    private static TextDiffType correctType(@NotNull TextDiffType type, boolean isFolded) {
      if (isFolded && (type == TextDiffType.DELETED || type == TextDiffType.INSERTED)) return TextDiffType.MODIFIED;
      return type;
    }
@NotNull
    private static TextDiffType correctType(@NotNull TextDiffType type, boolean isFolded)