ava文件的设置"Window"-"preferences"-"Java"-"Editor"-"Mark Occurrences"
复选框勾选Mark occurrences of the selected element in the cruuent file.
如下图所示: