Use a map to map CursorKind to class