`java.util.List` is not a queue, please use `java.util.Queue` if it is relevant.