具体的解决方法,File - Settings - Editor - Inspections - 然后搜索‘unused declaration‘取消打钩即可
IEDA使用常用设置,类名一直提示classname is never used
原文:https://www.cnblogs.com/bai-136451825/p/10035796.html