IntelliJ IDEA 2021.1 Help

Replace Temp with Query dialog

Refactor | Replace Temp with Query

ItemDescription
NameSpecify the name for the extracted method.
Declare staticCheck this option to declare the method static. This option is enabled when the initial expression is static itself.
ParametersIn this area, select the parameters you want to be used in the extracted method. The parameters are all checked by default. If unchecked, the appropriate value will be used as a local variable in the extracted method.
Move Up/DownUse this buttons to reorder parameters in the list.
VisibilityHere you can change the method's visibility scope.
Last modified: 08 March 2021