Classes with a large number of fields are often trying to do too much. Consider splitting such a class into multiple smaller classes.
Configure the inspection:
static final objects are counted as constants. Use the 'static final' fields count as constant option
to count any static final field as constant.enum constants in enum classes
should be counted.