void (@NotNull GrMethodCall methodCall, @NotNull Options options) { GrExpression rhs = getRhs(methodCall); GrExpression rhsParenthesized = checkPrecedenceForNonBinaryOps(rhs, RELATIONAL_PRECEDENCE) ? parenthesize(rhs) : rhs; GrExpression replacedElement = methodCall; IElementType changeToOperator = shouldChangeToOperator(methodCall, options); if (changeToOperator != mCOMPARE_TO) { replacedElement = (GrExpression) methodCall.getParent(); } replaceExpression(replacedElement, format("%s %s %s", getLhs(methodCall).getText(), changeToOperator, rhsParenthesized.getText())); }