public static @NotNull TextRange getLineTextRange(@NotNull Document document, int line) {
    return TextRange.create(document.getLineStartOffset(line), document.getLineEndOffset(line));
  }
public static @NotNull TextRange getLineTextRange(@NotNull Document document, int line)