public static @NotNull TextRange calcCaretLineTextRange(@NotNull Caret caret) {
    return logicalPairToTextRange(caret.getEditor(), calcCaretLineRange(caret));
  }
public static @NotNull TextRange calcCaretLineTextRange(@NotNull Caret caret)