@NotNull
  public static TextRange getLinesRange(@NotNull Document document, int line1, int line2, boolean includeNewline) {
    return DiffRangeUtil.getLinesRange(LineOffsetsUtil.create(document), line1, line2, includeNewline);
  }
@NotNull
  public static TextRange getLinesRange(@NotNull Document document, int line1, int line2, boolean includeNewline)