1.打开IDEA 2.打开IntelliJ IDEA窗口 3.点击File -> Settings选项 4.点击Editor下的Inspections选项,右侧显示相关的配置选项 5.在右侧的搜索框中输入G