SONARJAVA-376 Migrate to the strongly typed AST