def METHOD_NAME(view):
    # type: (sublime.View) -> Optional[Position]
    try:
        sel = view.sel()[0]
    except Exception:
        return None
    cursor = sel.b
    row, col = view.rowcol(cursor)
    return Position(row, col, y_offset(view, cursor))