void (@NotNull JLabel label) { label.setLabelFor(this); label.getActionMap().put("release" /* BasicLabelUI.Actions.RELEASE */, new AbstractAction() { @Override public void actionPerformed(ActionEvent event) { doClick(); } }); }