code: static void closeOthers(final Queue active, final List<Queue> all) {
          all.stream()
             .filter(next -> next != active)
             .forEach(Queue::closeAndClear);
  
      }
docs: Close all queues except the active one
  
  @param active Queue not to close
  @param all All queues potentially including the active queue