@NotNull
  public static List<String> getLines(@NotNull Document document) {
    return getLines(document, 0, getLineCount(document));
  }
@NotNull
  public static List<String> getLines(@NotNull Document document)