void (PsiElement parent) { PsiStatement initialization = ((PsiForStatement)parent).getInitialization(); if (initialization != null && !SyntaxTraverser.psiTraverser(initialization).filter(PsiExpression.class).filter(SideEffectChecker::mayHaveSideEffects).isEmpty()) { replaceWithStatements((PsiForStatement)parent, initialization); } else { parent.delete(); } }