title: Unused method parameters should be removed (squid:S1172) false positive using lambda
body: <p>I have a working method that uses parameter as a lambda expression</p>
  
  <pre><code>private BiConsumer&lt;List&lt;String&gt;, Properties&gt; handleList(Properties p) {
      return (list, prop) -&gt; executeSubList(list, prop);
  }
  </code></pre>
  
  <p>For <code>p</code> I'm getting a false positive warning from SonarLint</p>
  
  <pre><code>Unused method parameters should be removed (squid:S1172)
  </code></pre>
  
  <p>If I change <code>prop</code> to <code>p</code> I'm getting a compile error</p>
  
  <blockquote>
    <p>Lambda expression's parameter p cannot redeclare another local variable defined in an enclosing scope</p>
  </blockquote>
  
  <p>Is there a real issue or is it a false positive check when using a method parameter as a lambda parameter?</p>