SONARJAVA-553 Fix some false positive on anonymous classes using this