With the blinking cursor positioned on the line where your "extends Something" is located, just press "ctrl + ." on your keyboard.
This will either automatically import the class you want to extend or open a list where the first option will be the class you need to import. Then, just press Enter to confirm.
So, "ctrl + ." or "ctrl + ." and than "Enter".