Move Function to File

Extract a function into a separate file.

Want to move a function to a separate file? You can use the Move function quick fix (Alt+Enter) that creates a new file named after this function. Or use the Move... refactoring if you want to select a different target file.