void (int... offsets) { int[] actualPositions = getEditor().getInlayModel().getInlineElementsInRange(0, getEditor().getDocument().getTextLength()) .stream().mapToInt(i -> i.getOffset()).toArray(); assertArrayEquals(offsets, actualPositions); }