private boolean matchesWithEnabledObjectState(@NotNull ImmutableSet<ImmutableMap<String,Boolean>> allowedObjectStates){
  if (myAttributes.containsKey(STATE_ENABLED) && !myAttributes.get(STATE_ENABLED)) {
    return false;
  }
  for (  Map<String,Boolean> allowedAttributes : allowedObjectStates) {
    if (allowedAttributes.containsKey(STATE_ENABLED) && !allowedAttributes.get(STATE_ENABLED)) {
      continue;
    }
    boolean match=true;
    for (    String attribute : myAttributes.keySet()) {
      if (allowedAttributes.containsKey(attribute) && myAttributes.get(attribute) != allowedAttributes.get(attribute)) {
        match=false;
        break;
      }
    }
    if (match) {
      return true;
    }
  }
  return false;
}

private boolean matchesWithEnabledObjectState ( @ NotNull ImmutableSet < ImmutableMap < String , Boolean > > allowedObjectStates ) { if ( myAttributes . containsKey ( STATE_ENABLED ) && ! myAttributes . get ( STATE_ENABLED ) ) { return false ; } for ( Map < String , Boolean > allowedAttributes : allowedObjectStates ) { if ( allowedAttributes . containsKey ( STATE_ENABLED ) && ! allowedAttributes . get ( STATE_ENABLED ) ) { continue ; } boolean match = true ; for ( String attribute : myAttributes . keySet ( ) ) { if ( allowedAttributes . containsKey ( attribute ) && myAttributes . get ( attribute ) != allowedAttributes . get ( attribute ) ) { match = false ; break ; } } if ( match ) { return true ; } } return false ; }
checks if there exists an object state that matches this state list state , has state_enabled = true , and is represented in allowedobjectstates .
