void (@NotNull Project project, @NotNull PsiElement forElement, @NotNull ModPsiUpdater updater) { final PsiForStatement forStatement = (PsiForStatement)forElement.getParent(); CommentTracker commentTracker = new CommentTracker(); final String newExpression = buildSystemArrayCopyText(forStatement, commentTracker); if (newExpression == null) { return; } PsiIfStatement ifStatement = (PsiIfStatement)commentTracker.replaceAndRestoreComments(forStatement, newExpression); if (Boolean.TRUE.equals(DfaUtil.evaluateCondition(ifStatement.getCondition()))) { PsiStatement copyStatement = ControlFlowUtils.stripBraces(ifStatement.getThenBranch()); assert copyStatement != null; new CommentTracker().replaceAndRestoreComments(ifStatement, copyStatement); } }