An Eclipse plugin that works reasonably well is Unused Code Detector.
It processes an entire project, or a specific file and shows various unused/dead code methods, as well as suggesting visibility changes (i.e. a public method that could be protected or private).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…