SONARJAVA-511 Avoid extend/implement deprecated symbols.