IntelliJ IDEA (as well as other JetBrains IDEs) has a shortcut wich allows to apply the next word, suggested by Copilot (not a line!) which is disabled by default. To enable it, search for “Apply Next Word” in keymap settings and enable it:

keymap-screenshot