title: Replace this lambda with a method reference. (sonar.java.source not set. Assuming 8 or greater.)
body: <pre><code>List&lt;UUID&gt; insrVrfyIds = insrVrfyObjsNew.stream().map(insrVrfy -&gt; insrVrfy.getCustomerInsrVrfyId()).collect(Collectors.toList());
  </code></pre>
  
  <p>For the following code i am getting a warning as i mentioned in title. Can anyone please explain me how to convert this.</p>
  
  <p>here in the above code, i have a list of objects from that i want to extract all the primary keys using lambda expression.But i am getting the violation like "<strong>Replace this lambda with a method reference. (sonar.java.source not set. Assuming 8 or greater.)</strong>"</p>