SONARJAVA-223 Do not apply to classes extending another one