EqualsToEqualityFix (PsiMethodCallExpression expressionToFix, boolean negated) { if (ExpressionUtils.isVoidContext(expressionToFix)) { // replacing top level equals() call will produce red code return null; } return new EqualsToEqualityFix(negated); }