public void setLabel(@NotNull JLabel label) {
    label.setLabelFor(this);

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