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