long (@NotNull TextRange priorityRange, @NotNull List<? extends Divider.DividedElements> allDivided) { long finalPriorityRange = allDivided.isEmpty() ? TextRangeScalarUtil.toScalarRange(priorityRange) : allDivided.get(0).priorityRange(); for (int i = 1; i < allDivided.size(); i++) { Divider.DividedElements dividedElements = allDivided.get(i); finalPriorityRange = TextRangeScalarUtil.union(finalPriorityRange, dividedElements.priorityRange()); } return finalPriorityRange; }