Invoke content assist at the given caret position and choose sort(boolean mutate, Closure closure).
If Use named arguments for method calls and Place trailing closure arguments after closing parenthesis are both checked in Window > Preferences > Groovy > Editor > Content Assist, the following is inserted:
[].sort(mutate: mutate) closure: closure
or
[].sort(mutate: mutate) closure: { it }
if Use closure literals for closure arguments is also checked.
The argument name outside the parens is a syntax error.
Invoke content assist at the given caret position and choose sort(boolean mutate, Closure closure).
[].sort|If Use named arguments for method calls and Place trailing closure arguments after closing parenthesis are both checked in Window > Preferences > Groovy > Editor > Content Assist, the following is inserted:
or
if Use closure literals for closure arguments is also checked.
The argument name outside the parens is a syntax error.