private void addStaticPerms(PermissionCollection perms,PermissionCollection statics){
  if (statics != null) {
synchronized (statics) {
      Enumeration<Permission> e=statics.elements();
      while (e.hasMoreElements()) {
        perms.add(e.nextElement());
      }
    }
  }
}

private void addStaticPerms ( PermissionCollection perms , PermissionCollection statics ) { if ( statics != null ) { synchronized ( statics ) { Enumeration < Permission > e = statics . elements ( ) ; while ( e . hasMoreElements ( ) ) { perms . add ( e . nextElement ( ) ) ; } } } }
add static permissions to provided permission collection
