SONARJAVA-733 Fix FP on S1172 for method designed for extension