split 'find' function into 'find' and 'findRightmostChildNodeWithTokens'