private List<FileMatch> filterTargetMatchesWithoutSourceMatches(List<FileMatch> sourceMatchCandidates,List<FileMatch> targetMatchCandidates){
  List<FileMatch> filteredTargetMatchCandidates=new ArrayList<>();
  List<String> sourceFilenames=getSourceFilenames(sourceMatchCandidates);
  for (  FileMatch targetMatchCandidate : targetMatchCandidates) {
    if (sourceFilenames.contains(targetMatchCandidate.getSourcePath())) {
      filteredTargetMatchCandidates.add(targetMatchCandidate);
    }
  }
  return filteredTargetMatchCandidates;
}

private List < FileMatch > filterTargetMatchesWithoutSourceMatches ( List < FileMatch > sourceMatchCandidates , List < FileMatch > targetMatchCandidates ) { List < FileMatch > filteredTargetMatchCandidates = new ArrayList < > ( ) ; List < String > sourceFilenames = getSourceFilenames ( sourceMatchCandidates ) ; for ( FileMatch targetMatchCandidate : targetMatchCandidates ) { if ( sourceFilenames . contains ( targetMatchCandidate . getSourcePath ( ) ) ) { filteredTargetMatchCandidates . add ( targetMatchCandidate ) ; } } return filteredTargetMatchCandidates ; }
filter the list of target matches to return only the ones that have matching source .
