void (@NotNull PsiElement element) { final PsiConditionalExpression conditionalExpression = (PsiConditionalExpression)element; final PsiExpression condition = conditionalExpression.getCondition(); CommentTracker tracker = new CommentTracker(); final String replacementText = condition.getText() + "&&" + getText(conditionalExpression.getThenExpression(), tracker) + "||" + BoolUtils.getNegatedExpressionText(condition, AND_PRECEDENCE, tracker) + "&&" + getText(conditionalExpression.getElseExpression(), tracker); PsiReplacementUtil.replaceExpression((PsiExpression)element, replacementText, tracker); }