NOSONAR tag to ignore an invalid issue still shows as an issue
<p>I have the below method which is showing a sonar issue saying the method is not used anywhere.</p>

<pre><code>@Provides
@ObjectMapperAnnotation
 public ObjectMapper provideObjectMapper() { //NOSONAR
    ObjectMapper mapper = new ObjectMapper();
    mapper.registerModule(new JsonOrgModule());
    return mapper;

}
</code></pre>

<p>But this is a method that is called by the guice library and I do not have to call it explicitly. So in order to compress this issue I used the NOSONAR tag as shown above. But it still is showing a major issue as shown below.</p>

<pre><code>Is //NOSONAR used to exclude false-positive or to hide real quality flaw ? 
</code></pre>

<p>How can I avoid this issue being shown for using the NOSONAR tag? Any help would be much appreciated.</p>