Add static to getRestriction method