From comment : #17667 (comment)
For Suppression Warning Check, On Conversion to Enhance Switch cases , function Allowed Nesting Depth goes beyond 6.
Error After removing : #17667 (comment)
<file>file://$PROJECT_DIR$/src/main/java/com/puppycrawl/tools/checkstyle/checks/annotation/SuppressWarningsCheck.java</file>
<line>223</line>
<module>project</module>
<package>com.puppycrawl.tools.checkstyle.checks.annotation</package>
<entry_point TYPE="method" FQNAME="com.puppycrawl.tools.checkstyle.checks.annotation.SuppressWarningsCheck void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast)"/>
<problem_class id="EnhancedSwitchMigration" severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Statement can be replaced with enhanced 'switch'</problem_class>
<description>Switch statement can be replaced with enhanced 'switch'</description>
<highlighted_element>switch</highlighted_element>
<language>JAVA</language>
<offset>24</offset>
<length>6</length>
</problem>
</problems>
From comment : #17667 (comment)
For Suppression Warning Check, On Conversion to Enhance Switch cases , function Allowed Nesting Depth goes beyond 6.
Error After removing : #17667 (comment)