void () { if (isValid()) { int offset = getOffset(); List<Inlay<?>> inlays = myEditor.getInlayModel().getInlineElementsInRange(offset, offset); putUserData(ORDER_BEFORE_DISPOSAL, inlays.indexOf(this)); putUserData(ID_BEFORE_DISPOSAL, getId()); } super.dispose(); }