JAL-2839 refactored out getNextVisibleSequenceRegion