Implement checker for unused-require correctly