void (String[] args) { for (int i = 0; i < 10; ++i) { if (flag.value && i == 0) { break; } if (flag.value && i == 3) { System.out.println("IDEA thinks we can't get here"); break; } flag.setValue(true); } }