PsiExpression (@NotNull PsiBinaryExpression binOp, IElementType opType) { if (!binOp.getOperationTokenType().equals(opType)) return null; PsiExpression rOperand = binOp.getROperand(); if (rOperand == null) return null; PsiExpression lOperand = binOp.getLOperand(); if (isZero(lOperand)) return rOperand; if (isZero(rOperand)) return lOperand; return null; }