PsiExpression (@Nullable PsiBinaryExpression binOp, @Nullable PsiVariable variable) { if(binOp == null || variable == null) return null; if(isReferenceTo(binOp.getLOperand(), variable)) return binOp.getROperand(); if(isReferenceTo(binOp.getROperand(), variable)) return binOp.getLOperand(); return null; }