@Override
    void collapse(@NotNull PsiElement anchor) {
      PsiWhileStatement whileStatement = tryCast(anchor, PsiWhileStatement.class);
      if (whileStatement != null) {
        ConditionalBreakInInfiniteLoopInspection.tryTransform(whileStatement);
      }
    }
@Override
    void collapse(@NotNull PsiElement anchor)