IntelliJ IDEA 2021.1 Help

Extract Method Dialog for Groovy

Refactor | Extract Method
Ctrl+Alt+M

ItemDescription
VisibilityIn this area, specify the visibility scope of the method to be generated.
NameIn this field, specify the name of the function or method to be generated on the basis of the selected source code.
Specify return type explicitlyThis checkbox is available if you invoke refactoring from the method of a Groovy class. Select this checkbox to return a data type of the value explicitly.
Use explicit return statementThis checkbox is active if the method returns a value. You can omit return keyword if it is the last return statement in the method. If you select this checkbox the keyword is returned.
ParametersIn this area, select parameters to be passed to the new method/function.
Move Up/DownUse these buttons to change the order of the parameters.
Signature previewIn this read-only field, view the declaration of the new method/function.
Last modified: 08 March 2021