The Inline refactoring lets you reverse the extract refactoring for method, or variable.
Place a cursor within the code fragment you want to inline.
Press Ctrl+Alt+N or from the main menu, select.
In the Inline dialog that corresponds to the selected symbol, specify the inlining options. Preview and apply changes. (When inlining a variable, simply confirm the inline refactoring.)