File—>Settings —>Editor —>Color Scheme—>General —>Errors and Warning—>Error Unused symbol 未使用方法,属性等 error 错误的属性