module Net::IMAP::ResponseParser::ParserUtils

def lookahead?(*symbols)

like accept, without consuming the token
def lookahead?(*symbols)
  @token if symbols.include?((@token ||= next_token)&.symbol)
end