SONARJAVA-399 & SONARJAVA-397 Migrate the rule to strongly type AST.