void () { if (myCurrentDragContext == null || myCurrentEvent == null) { return; } Cursor cursor; if (myCurrentEvent.isDropPossible()) { cursor = myCurrentEvent.getCursor(); if (cursor == null) { cursor = myCurrentEvent.getAction().getCursor(); } } else { cursor = myCurrentEvent.getAction().getRejectCursor(); } myCurrentDragContext.setCursor(cursor); }