@Override
      public void setSelected(@NotNull AnActionEvent e, boolean state) {
        if (e.getDataContext() != DataContext.EMPTY_CONTEXT) { // Avoid fake events
          properties.setValue(PREVIEW_PROPERTY_KEY, state);
          cancel(popupRef.get(), actionHandler, CLOSE_REASON_PREVIEW);

          showElementUsages(parameters, actionHandler);
        }
      }
@Override
      public void setSelected(@NotNull AnActionEvent e, boolean state)