https://jingyan.baidu.com/article/63acb44a15ae7f61fcc17e8f.html 右键Refactor-Extract-Variable,也可以按快捷键ctrl+alt+v