@Override
 public void removeEditorMouseMotionListener(@NotNull final EditorMouseMotionListener listener) {
   EditorMouseMotionListener wrapper = myEditorMouseMotionListeners.removeWrapper(listener);
   if (wrapper != null) {
     myDelegate.removeEditorMouseMotionListener(wrapper);
   }
 }
 @Override
 public void removeEditorMouseListener(@NotNull final EditorMouseListener listener) {
   EditorMouseListener wrapper = myEditorMouseListeners.removeWrapper(listener);
   // HintManager might have an old editor instance
   if (wrapper != null) {
     myDelegate.removeEditorMouseListener(wrapper);
   }
 }