public boolean contains(AccessibleState state){
  if (states == null) {
    return false;
  }
 else {
    return states.contains(state);
  }
}

public boolean contains ( AccessibleState state ) { if ( states == null ) { return false ; } else { return states . contains ( state ) ; } }
checks if the current state is in the state set .
