Error writing Java custom rule

This error is reported when I follow the steps to write the rules and test them.:

When I debug, I am fully powered off, but no exceptions are found at the breakpoint, including super. Visitclass (tree);
So I don’t know what’s wrong. I use jdk16. Here’s my POM environment:

In addition, the code can be built successfully, and the rules can be found in the coding_rules of sonarqube, but no errors can be scanned.

content.issues is not null, but it fails in the end

When I use the verifyNoIssues() method in the test file, my customized error message will be displayed, but the test still fails