void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiConditionalLoopStatement loop = PsiTreeUtil.getParentOfType(element, PsiConditionalLoopStatement.class); if (loop == null) return; Context context = Context.from(loop, noConversionToDoWhile, false); if (context == null) return; context.simplify(loop); }