Change Method Signature

Refactor the signature of a method at any time.

Press ⌘F6 (macOS) / Ctrl+F6 (Windows/Linux), to bring up the Change Signature dialog. You can add or remove method parameters here.

You can use ⌘N (macOS) / Alt+Insert (Windows/Linux), to add a new parameter.


Related Resources

Migrating from the `javax` to `jakarta` namespace
Migrating from the `javax` to `jakarta` namespace
How to transition your application from Java EE to Jakarta EE.
Extract Method
Extract Method
Extract code to a new method.
Inline Variable
Inline Variable
Sometimes inlining a variable can make your code more readable.