private boolean groupsOverlap(String[] possibilities){
  if (groups == null)   return true;
  for (int i=0; i < possibilities.length; i++) {
    if (groups.contains(possibilities[i]))     return true;
  }
  return false;
}

private boolean groupsOverlap ( String [ ] possibilities ) { if ( groups == null ) return true ; for ( int i = 0 ; i < possibilities . length ; i ++ ) { if ( groups . contains ( possibilities [ i ] ) ) return true ; } return false ; }
indicate whether any of the group names in the given array match any of the groups of interest .
