boolean (@NotNull PyReferenceExpression node) { final PsiElement parent = node.getParent(); return parent instanceof PyPrefixExpression && ((PyPrefixExpression)parent).getOperator() == PyTokenTypes.NOT_KEYWORD && parent.getParent() instanceof PyIfPart; }