void (@NotNull GrMethodCall methodCall, @NotNull Options options) { GrExpression rhs = getRhs(methodCall); GrExpression rhsParenthesized = checkPrecedenceForBinaryOps(getPrecedence(rhs), GroovyTokenTypes.mEQUAL, true) ? parenthesize(rhs) : rhs; GrExpression replacedElement = methodCall; String operator = "=="; if (isNegation(methodCall.getParent())) { replacedElement = (GrExpression) methodCall.getParent(); operator = "!="; } replaceExpression(replacedElement, getLhs(methodCall).getText() + " " + operator + " " + rhsParenthesized.getText()); }