One way is to configure your intention settings (I'm assuming this is doable with Android Studio, I'm an IntelliJ user).
For this specific intention:
- put your cursor on the "for" keyword
- press "alt+enter" (or maybe "option+enter" or something like that on a mac).
- press the right arrow, select "edit inspection profile setting" and turn it off or customise to your liking