public final @NotNull InplaceButton setCloseAction(@NotNull Runnable action) {
    myCloseAction = action;
    if (myCloseButton == null) {
      myCloseButton = new InplaceButton(IdeBundle.message("editor.banner.close.tooltip"), getCloseIcon(), e -> {
        myCloseAction.run();
      });
      myCloseButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
      if (myLastPanel == null) {
        myLinksPanel.add(myCloseButton);
      }
      else {
        myLastPanel.add(myCloseButton);
      }
    }
    return myCloseButton;
  }
public final @NotNull InplaceButton setCloseAction(@NotNull Runnable action)