Yes, that would be nicer. Changed to val, and also below in the multiple case. That also had the odd side-effect of making IntelliJ not choke on the anonymous class definition, so win-win!