Go to Settings | Keymap , find the Find ... action in the Other group. This action should have the following description:
Find a line in the active editor, show a modal dialog
Assign a key combination for this action (you need to make a copy of the map by default to change it), for example Ctrl + Alt + Shift + F.
When in the editor select any block of text, then click this shortcut, a dialog will open with Sphere automatically set to Selected text :

To quickly select the body of a method, standing on an open curly brace, use Ctrl + W.
source share