Introduce Variable
Refactor your code and introduce a new variable right when you need it.
Let IntelliJIDEA help you refactor your code. Use Introduce Variable ⌥⌘V (macOS) / Ctrl+Alt+V (Windows/Linux) to assign (part of) an expression to a new variable.