pub fn pick_best_token( tokens: TokenAtOffset<SyntaxToken>, f: impl Fn(SyntaxKind) -> usize, ) -> Option<SyntaxToken>
Picks the token with the highest rank returned by the passed in function.