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