question: private Set < StoragePort > andStoragePortSets ( Set < StoragePort > a , Set < StoragePort > b ) { Set < StoragePort > result = new HashSet < StoragePort > ( ) ; for ( StoragePort port : a ) { if ( b . contains ( port ) ) { result . add ( port ) ; } } return result ; }
target:  Logical AND of a and b