void () { initText("a<caret>bc"); addInlay(1); runWriteCommand(()-> DocumentUtil.executeInBulk(getEditor().getDocument(), ()-> getEditor().getDocument().insertString(1, " "))); checkResultByText("a<caret> bc"); assertTrue(getEditor().getInlayModel().hasInlineElementAt(1)); }