my template looks like:
$TYPE$ $iterator$ = $getIter$;
$statements$;
while ($iterator$.hasNext()) {
$statements$;
$iterator$.remove();
$statements$;
}
the problem is this only matches "flat code" like
while () {
....
iterator.remove();
....
}
if there is a switch/if/any block around the remove, it won't match. how can i tell idea to ignore the block depth?
This is not currently possible