PsiExpression (@NotNull PsiConditionalExpression exp) { final PsiExpression thenExpression = exp.getThenExpression(); final PsiExpression elseExpression = exp.getElseExpression(); final PsiExpression condition = exp.getCondition(); assert thenExpression != null; assert elseExpression != null; return BoolUtils.isTrue(condition) ? thenExpression : elseExpression; }