boolean (@NotNull PyReferenceExpression node) { final PsiElement parent = node.getParent(); return parent instanceof PyConditionalExpression && node == ((PyConditionalExpression)parent).getCondition(); }