The innermost syntax node ending at or around pos whose name is in types, or null when there is none. Like upstream's tokenBefore, a node that contains the cursor counts: inside "ab|c" the String node is found, which is what lets ifIn/ifNotIn test "the cursor is in a string".