private void skipToNextVariant(final Path head){
  final int aNext=futureVariantPos(head.mCalledPath,mCalledVariants);
  final int bNext=futureVariantPos(head.mBaselinePath,mBaseLineVariants);
  final int lastTemplatePos=mTemplate.length - 1;
  final int nextPos=Math.min(Math.min(aNext,bNext),lastTemplatePos) - 1;
  assert head.mCalledPath.getPosition() == head.mBaselinePath.getPosition();
  if (nextPos > head.mCalledPath.getPosition()) {
    head.moveForward(nextPos);
  }
}

private void skipToNextVariant ( final Path head ) { final int aNext = futureVariantPos ( head . mCalledPath , mCalledVariants ) ; final int bNext = futureVariantPos ( head . mBaselinePath , mBaseLineVariants ) ; final int lastTemplatePos = mTemplate . length - 1 ; final int nextPos = Math . min ( Math . min ( aNext , bNext ) , lastTemplatePos ) - 1 ; assert head . mCalledPath . getPosition ( ) == head . mBaselinePath . getPosition ( ) ; if ( nextPos > head . mCalledPath . getPosition ( ) ) { head . moveForward ( nextPos ) ; } }
move the path to just before the next variant for either side
