public static Pair<GenomeLocSortedSet, GenomeLocSortedSet> parseIntervalBindingsPair(
final ReferenceDataSource referenceDataSource,
final List<IntervalBinding<Feature>> intervals,
final IntervalSetRule intervalSetRule, final IntervalMergingRule intervalMergingRule, final int intervalPadding,
final List<IntervalBinding<Feature>> excludeIntervals) {
GenomeLocParser genomeLocParser = new GenomeLocParser(referenceDataSource.getReference());
// if include argument isn't given, create new set of all possible intervals
GenomeLocSortedSet includeSortedSet = ((intervals == null || intervals.size() == 0) ?
GenomeLocSortedSet.createSetFromSequenceDictionary(referenceDataSource.getReference().getSequenceDictionary()) :
loadIntervals(intervals, intervalSetRule, intervalMergingRule, intervalPadding, genomeLocParser));