SONARJAVA-9 Do not use reflection for visitors