boolean (PsiPolyadicExpression expression) { PsiExpression[] operands = expression.getOperands(); if (operands.length == 1) return false; for (PsiExpression operand : operands) { if (TypeUtils.hasFloatingPointType(operand)) return false; // don't change semantics for NaNs } return JavaTokenType.NE.equals(expression.getOperationTokenType()); }