SONARJAVA-154 Set correct flags for enumerations, enumeration constants, annotation types and anonymous classes