PsiExpression (@NotNull PsiBinaryExpression binOp) { final IElementType tokenType = binOp.getOperationTokenType(); if(!tokenType.equals(JavaTokenType.EQEQ) && !tokenType.equals(JavaTokenType.NE)) return null; final PsiExpression left = binOp.getLOperand(); final PsiExpression right = binOp.getROperand(); if(isNullLiteral(right)) return left; if(isNullLiteral(left)) return right; return null; }