Inline Variable Refactoring
The inline refactoring lets you replace a variable reference with its assigned value.
Place the text cursor on the variable declaration or reference you would like to inline. Then invoke Refactor → Inline… to start the operation.
If you inline a variable declaration, then all references will be inlined without prompting you. If you line a variable reference, then you can choose if you would like to inline this reference only or all references of the declaration.
Inlining a value handles unquoted and quoted references.
If you inline the value of a reassigned variable, then the last assigned value is inlined.