compiler warning: Message in type pattern Queue[Message] is unchecked since it is eliminated by erasure