void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final GrConditionalExpression expr = (GrConditionalExpression)element; final GrExpression condition = expr.getCondition(); final GrExpression thenExpression = expr.getThenBranch(); final GrExpression elseExpression = expr.getElseBranch(); assert elseExpression != null; assert thenExpression != null; final String newExpression; if (checkForStringIsEmpty(condition, elseExpression) || checkForListIsEmpty(condition, elseExpression) || checkForEqualsNotElse(condition, elseExpression)) { newExpression = elseExpression.getText() + " ?: " + thenExpression.getText(); } else { newExpression = thenExpression.getText() + " ?: " + elseExpression.getText(); } PsiImplUtil.replaceExpression(newExpression, expr); }