public boolean matchesAllExpectations(Collection<Issue> issues,List<String> messages){
  Collection<Issue> issueCopy=new LinkedList<>(issues);
  Collection<IssueMatcher> matcherCopy=new LinkedList<>(issueMatchers);
  performMatching(issueCopy,matcherCopy,messages);
  if (inverted) {
    if (matcherCopy.isEmpty()) {
      explainExpectations(issueMatchers,messages,inverted);
      return false;
    }
  }
 else {
    if (!matcherCopy.isEmpty()) {
      explainExpectations(matcherCopy,messages,inverted);
      return false;
    }
  }
  return false;
}

public boolean matchesAllExpectations ( Collection < Issue > issues , List < String > messages ) { Collection < Issue > issueCopy = new LinkedList < > ( issues ) ; Collection < IssueMatcher > matcherCopy = new LinkedList < > ( issueMatchers ) ; performMatching ( issueCopy , matcherCopy , messages ) ; if ( inverted ) { if ( matcherCopy . isEmpty ( ) ) { explainExpectations ( issueMatchers , messages , inverted ) ; return false ; } } else { if ( ! matcherCopy . isEmpty ( ) ) { explainExpectations ( matcherCopy , messages , inverted ) ; return false ; } } return false ; }
matches the expectations in the added issues matchers against the given issues .
