void () { if (myDetachPostponed) { myDetachPostponed = false; return; } if (myStopped || myGlassPane != null) { return; } myGlassPane = IdeGlassPaneUtil.find(myDragComponent); myGlassPaneListenersDisposable = Disposer.newDisposable("myGlassPaneListeners"); Disposer.register(myParentDisposable, myGlassPaneListenersDisposable); myGlassPane.addMousePreprocessor(this, myGlassPaneListenersDisposable); myGlassPane.addMouseMotionPreprocessor(this, myGlassPaneListenersDisposable); KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(this); }