void () { initText("ab"); Inlay<?> i0 = addInlay(0); Inlay<?> i1 = addInlay(1); Inlay<?> i2 = addInlay(2); runWriteCommand(() -> { getEditor().getDocument().deleteString(0, 1); getEditor().getDocument().deleteString(0, 1); }); assertEquals(Arrays.asList(i0, i1, i2), getEditor().getInlayModel().getInlineElementsInRange(0, 0)); }