docs: private Set<IPermission> removeInactivePermissions(final IPermission[] perms) {
          Date now = new Date();
  
          Set<IPermission> rslt = new HashSet<>(1);
  
          for (int i = 0; i < perms.length; i++) {
              IPermission p = perms[i];
  
              if ((p.getEffective() == null || !p.getEffective().after(now))
                      && (p.getExpires() == null || p.getExpires().after(now))) {
                  rslt.add(p);
              }
          }
  
          return rslt;
      }