code: @Before
      static void checkRestrictions() throws Throwable
      {
          DEADBOLT_HANDLER.beforeRoleCheck();
  
          RoleHolder roleHolder = getRoleHolder();
          RestrictionType restrictionType = getRestrictionType();
          if (restrictionType == RestrictionType.DYNAMIC)
          {
              handleDynamicChecks(roleHolder);
          }
          else if (restrictionType == RestrictionType.STATIC)
          {
              handleStaticChecks(roleHolder);
          }
          else if (restrictionType == RestrictionType.BASIC)
          {
              handleRoleHolderPresent(roleHolder);
          }
      }
docs: Checks access to a class or method based on any {@link controllers.deadbolt.Restrict} or
  {@link controllers.deadbolt.Restrictions} annotations.