Is an anonymous class instantiated in a static member too clever?