public static @NotNull TextRange calcCaretLineTextRange(@NotNull Editor editor) {
    return logicalPairToTextRange(editor, calcCaretLineRange(editor));
  }
public static @NotNull TextRange calcCaretLineTextRange(@NotNull Editor editor)