boolean (PsiExpression expression, PsiPolyadicExpression polyadicExpression) { if (!ComparisonUtils.isEqualityComparison(polyadicExpression)) { return false; } for (PsiExpression operand : polyadicExpression.getOperands()) { if (operand == expression) { continue; } if (!(operand.getType() instanceof PsiPrimitiveType) || isUnboxingExpression(operand)) { return true; } } return false; }