public boolean isVisibleByRegisteredUsers(){
  List<PermissionRule> access=relevant.getPermission(Permission.READ);
  List<PermissionRule> overridden=relevant.getOverridden(Permission.READ);
  Set<ProjectRef> allows=new HashSet<>();
  Set<ProjectRef> blocks=new HashSet<>();
  for (  PermissionRule rule : access) {
    if (rule.isBlock()) {
      blocks.add(relevant.getRuleProps(rule));
    }
 else     if (SystemGroupBackend.isAnonymousOrRegistered(rule.getGroup())) {
      allows.add(relevant.getRuleProps(rule));
    }
  }
  for (  PermissionRule rule : overridden) {
    if (SystemGroupBackend.isAnonymousOrRegistered(rule.getGroup())) {
      blocks.remove(relevant.getRuleProps(rule));
    }
  }
  blocks.removeAll(allows);
  return blocks.isEmpty() && !allows.isEmpty();
}

public boolean isVisibleByRegisteredUsers ( ) { List < PermissionRule > access = relevant . getPermission ( Permission . READ ) ; List < PermissionRule > overridden = relevant . getOverridden ( Permission . READ ) ; Set < ProjectRef > allows = new HashSet < > ( ) ; Set < ProjectRef > blocks = new HashSet < > ( ) ; for ( PermissionRule rule : access ) { if ( rule . isBlock ( ) ) { blocks . add ( relevant . getRuleProps ( rule ) ) ; } else if ( SystemGroupBackend . isAnonymousOrRegistered ( rule . getGroup ( ) ) ) { allows . add ( relevant . getRuleProps ( rule ) ) ; } } for ( PermissionRule rule : overridden ) { if ( SystemGroupBackend . isAnonymousOrRegistered ( rule . getGroup ( ) ) ) { blocks . remove ( relevant . getRuleProps ( rule ) ) ; } } blocks . removeAll ( allows ) ; return blocks . isEmpty ( ) && ! allows . isEmpty ( ) ; }
true if this reference is visible by all registered_users
