boolean (PsiExpression[] operands) { PsiExpression previousExpression = null; for (PsiExpression operand : operands) { if (isZero(operand) || isAllOnes(operand) || (areEquivalentModuloComplement(previousExpression, operand) && !SideEffectChecker.mayHaveSideEffects(operand))) { return true; } previousExpression = operand; } return false; }