void (@NotNull DocumentEvent event) { if (myInlaysAtCaret != null) { for (Inlay<?> inlay : myInlaysAtCaret) { ((InlayImpl<?, ?>)inlay).setStickingToRight(inlay.isRelatedToPrecedingText()); } myInlaysAtCaret = null; } if (DocumentEventUtil.isMoveInsertion(event)) { for (InlayImpl<?, ?> inlay : myInlaysInvalidatedOnMove) { notifyRemoved(inlay); } myInlaysInvalidatedOnMove.clear(); } }