public class DontWidenPlusInLoop {
  public static int parse(String value, int i) {
    do {
      i = value.indexOf('{', i);
      if (i != -1 && i == value.indexOf("{{", i)) {
        i += 2;
      }
      else {
        break;
      }
    }
    while (<warning descr="Condition 'i != -1' is always 'true'">i != -1</warning>);
    return i;
  }
}
@@ -1,12 +1,33 @@
+import java.util.*;%0A%0A
 public class
@@ -360,10 +360,257 @@
 n i;%0A  %7D
+%0A%0A  void test(List%3CString%3E list) %7B%0A    List%3CString%3E result = null;%0A    int count = 0;%0A    for (String s : list) %7B%0A      count++;%0A      if (count == 1) %7B%0A        result = new ArrayList%3C%3E();%0A      %7D%0A      result.add(s); // No possible NPE!%0A    %7D%0A  %7D
 %0A%7D

Add test from IDEA-254146