Handling inner anonymous classes