package inspections.cancellationCheckInLoops;

import com.intellij.util.concurrency.annotations.RequiresReadLock;
import java.util.List;


class Clazz {

  @RequiresReadLock
  public static void foo(List<String> iterable) {
    iterable.<warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">for<caret>Each</warning>(e -> {
        // empty block
    });
  }
}
