@Override
        public void mousePressed(final MouseEvent e) {
          if (performClickOnMousePress()) {
            if (SwingUtilities.isLeftMouseButton(e)) {
              e.consume();
              if (e.isShiftDown()) {
                doShiftClick();
              }
              else {
                doClick();
              }
            } else if(SwingUtilities.isRightMouseButton(e)){
              doRightClick();
            }
          }
        }
@Override
        public void mousePressed(final MouseEvent e)