@Override
 protected void uninstallListeners() {
   scrollbar.removeMouseMotionListener(this);
   scrollbar.removeMouseListener(this);
   myErrorStripeButton.removeMouseMotionListener(this);
   myErrorStripeButton.removeMouseListener(this);
   super.uninstallListeners();
 }
    public void setPopupHandler(final PopupHandler handler) {
      if (myHandler != null) {
        scrollbar.removeMouseListener(myHandler);
        myErrorStripeButton.removeMouseListener(myHandler);
      }

      myHandler = handler;
      scrollbar.addMouseListener(handler);
      myErrorStripeButton.addMouseListener(myHandler);
    }