Is this done because you have to reference a static class and can't use an anonymous inner class?