void (@NotNull GrBinaryExpression expression) { GrExpression lhsParenthesized = addParenthesesIfNeeded(getLhs(expression)); String compare = ""; if (myElementType != mCOMPARE_TO) { compare = format(" %s 0", myElementType.toString()); } replaceExpression(expression, format("%s.compareTo(%s) %s", lhsParenthesized.getText(), getRhs(expression).getText(), compare)); }