The Extract Method refactoring in BaseLanguage helps you simplify complicated statements in your code by moving parts of your code into a newly created method. You can select several statements from a block of code and press &shortcut:ExtractMethod; (Refactoring | Extract Method in the pop-up menu).