title: Intellij warns forgetting write to 2D array
body: <p>After creating a 2D array and filling elements:</p>
  
  <pre><code>boolean[][] visited = new boolean[board.length][board[0].length];
  for (boolean[] row: visited) {
      Arrays.fill(row, false);
  }
  </code></pre>
  
  <p>IntelliJ telling me I did not written into anything into it:</p>
  
  <p><a href="https://i.stack.imgur.com/fMMu4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fMMu4.png" alt="enter image description here"></a></p>
  
  <p>Why and how to fix it? It's ok when the array is 1D.</p>