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

      ActionMap map = label.getActionMap();
      String name = "release"; // BasicLabelUI.Actions.RELEASE
      Action old = map.get(name);
      map.put(name, new AbstractAction() {
        @Override
        public void actionPerformed(ActionEvent event) {
          if (old != null) old.actionPerformed(event);
          doClick();
        }
      });
    }
public void setLabel(@NotNull JLabel label)