title: Avoiding map.get(key) method
body: <p>I have the following code but i saw that retrieving values from a Map while iterating over the Map keys with <code>keySet()</code> is a mistake even with findBugs i get the warning <code>WMI_WRONG_MAP_ITERATOR</code></p>
  
  <pre><code>for(String elementId : mapElements.keySet()){
  
       element = mapElements.get(elementId); 
  
       doSomething(element);
  }
  </code></pre>
  
  <p>so why exactly is this not good and how can i fix it ?</p>
  
  <p>Thanks.</p>