boolean isBelowAllNonNegative = loopChangeMask.getMask().subList(0, loopChangeMask.getBeginIndex()).stream().allMatch(i -> i >= 0);
boolean isAboveAllNonNegative = loopChangeMask.getMask().subList(loopChangeMask.getBeginIndex() + 1, loopChangeMask.getMask().size()).stream().allMatch(i -> i >= 0);
if (!(isBelowAllNonNegative && isAboveAllNonNegative)) {
continue;
}