@Nullable
    private Data createState(@Nullable List<? extends MergeLineFragment> fragments,
                             int @NotNull [] lineCount,
                             @NotNull FoldingModelSupport.Settings settings) {
      Iterator<int[]> it = map(fragments, fragment -> new int[]{
        fragment.getStartLine(ThreeSide.LEFT),
        fragment.getEndLine(ThreeSide.LEFT),
        fragment.getStartLine(ThreeSide.BASE),
        fragment.getEndLine(ThreeSide.BASE),
        fragment.getStartLine(ThreeSide.RIGHT),
        fragment.getEndLine(ThreeSide.RIGHT)
      });
      return computeFoldedRanges(it, lineCount, settings);
    }
@Nullable
    private Data createState(@Nullable List<? extends MergeLineFragment> fragments,
                             int @NotNull [] lineCount,
                             @NotNull FoldingModelSupport.Settings settings)