title: How to use hints of Android Studio correctly
body: <p>When I work with android studio it shows hints very often, I have 2 questions about it:
  <a href="https://i.stack.imgur.com/NFBqn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NFBqn.png" alt="enter image description here"></a>
  1)  Why do android studio when I press enter (in scenario like on screenshot) makes just</p>
  
  <pre><code>noteRef.get()
  .addOnSuccessListener {}
  
  }
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>noteRef.get()
  .addOnSuccessListener { documentSnapshot -&gt;  }
  
  }
  </code></pre>
  
  <p>Is there a way generate { documentSnapshot ->  } automatically?</p>
  
  <p>2) Second problem: imagine, I have code like this:</p>
  
  <pre><code>    var planetMarsSize = 0
      var planetEarthSize=0
      planetMarsSize = 5
  </code></pre>
  
  <p>for example I made mistake in this code and have to make "planetEarthSize = 5" instead of "planetMarsSize = 5" so i place cursor between "Mars" and "size", delete "Mars" and start tipping "Earth" - in this case Android studio shows me a hint to autocomplete text, I press enter. At the end text become "planetEarthSizeSize = 5" so android studio shows error. How can I make android studio to autocomplete "planetEarthSize" instead of "planetEarthSizeSize"?
  Video of problem: <a href="https://photos.app.goo.gl/qAbcxtZsV4URwWwR8" rel="nofollow noreferrer">https://photos.app.goo.gl/qAbcxtZsV4URwWwR8</a></p>