Do not raise java:S1149 if that is imposed by method signature of a library

Goes in the same direction as this request: