public static TextRange getLinesRange(@NotNull Document document, int line1, int line2) {
    return getLinesRange(document, line1, line2, false);
  }
public static TextRange getLinesRange(@NotNull Document document, int line1, int line2)