void () { initText("<caret>ab <caret>ab"); addInlay(1); addInlay(4); right(); type(' '); checkResultByText("a <caret>b a <caret>b"); assertEquals(Arrays.asList(new VisualPosition(0, 2), new VisualPosition(0, 7)), ContainerUtil.map(getEditor().getCaretModel().getAllCarets(), Caret::getVisualPosition)); right(); type(' '); checkResultByText("a <caret>b a <caret>b"); assertEquals(Arrays.asList(new VisualPosition(0, 4), new VisualPosition(0, 10)), ContainerUtil.map(getEditor().getCaretModel().getAllCarets(), Caret::getVisualPosition)); }