void (@NotNull Object requestor, @Nullable Cursor cursor) { ReadAction.run(() -> { if (cursor == null) { myCustomCursors.remove(requestor); } else { myCustomCursors.put(requestor, cursor); } updateEditorCursor(); }); }