void (@NotNull GrMethodCall methodCall, @NotNull Options options) { GrExpression base = requireNonNull(getBase(methodCall)); GrExpression key = getArgument(methodCall, 0); GrExpression rhs = getArgument(methodCall, 1); rhs = checkPrecedenceForNonBinaryOps(rhs, ASSIGNMENT_PRECEDENCE) ? parenthesize(rhs) : rhs; String result = format("%s[%s] = %s", base.getText(), key.getText(), rhs.getText()); replaceExpression(methodCall, result); }