private void remove(Consumer<? super AnActionEvent> action, AnActionEvent e) {
    setVisible(false);
    action.accept(e);
  }
private void remove(Consumer<? super AnActionEvent> action, AnActionEvent e)