```\\nfunction _checkRole(bytes32 role, address account) internal view {\\n    if (!hasRole(role, account)) {\\n        revert(\\n            string(\\n                abi.encodePacked(\\n                    "AccessControl: account ",\\n                    Strings.toHexString(uint160(account), 20),\\n                    " is missing role ",\\n                    Strings.toHexString(uint256(role), 32)\\n                )\\n            )\\n        );\\n    }\\n}\\n```\\n