SONARJAVA-9 Simplify access to name of method in AST