public boolean matchesAllIssues(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 (issueCopy.isEmpty()) {
      explainIssues(issues,messages,inverted);
      return false;
    }
  }
 else {
    if (!issueCopy.isEmpty()) {
      explainIssues(issueCopy,messages,inverted);
      return false;
    }
  }
  return true;
}

public boolean matchesAllIssues ( 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 ( issueCopy . isEmpty ( ) ) { explainIssues ( issues , messages , inverted ) ; return false ; } } else { if ( ! issueCopy . isEmpty ( ) ) { explainIssues ( issueCopy , messages , inverted ) ; return false ; } } return true ; }
matches the expectations in the added issues matchers against the given issues .
