Use Classes#simpleName() to be able to use this helper method inside anonymous classes too.