public Pair < EntityInfo > getParentCompounds ( ) { Pair < Chain > chains = getParentChains ( ) ; if ( chains == null ) { logger . warn ( "Could not find parents chains, compounds will be null" ) ; return null ; } return new Pair < EntityInfo > ( chains . getFirst ( ) . getEntityInfo ( ) , chains . getSecond ( ) . getEntityInfo ( ) ) ; }
Finds the parent compounds by looking up the references of first atom of each side of this interface