public static boolean isInLoop(@NotNull GroovyPsiElement element) {
    return isInForStatementBody(element) ||
        isInWhileStatementBody(element);
  }
public static boolean isInLoop(@NotNull GroovyPsiElement element)