SONARJAVA-154 Enumeration constants can declare anonymous inner class