@Override
  public void update(@NotNull AnActionEvent event) {
    Project project = event.getProject();
    Presentation presentation = event.getPresentation();
    if (LightEdit.owns(project)) {
      presentation.setEnabledAndVisible(!ActionPlaces.EDITOR_POPUP.equals(event.getPlace()));
      return;
    }
    super.update(event);
    boolean isInFloatingToolbar = ActionPlaces.EDITOR_FLOATING_TOOLBAR.equals(event.getPlace());
    if (isInFloatingToolbar || ActionPlaces.EDITOR_HINT.equals(event.getPlace())) {
      presentation.setIcon(AllIcons.Actions.IntentionBulb);
    }
    if (isInFloatingToolbar) {
      presentation.setPopupGroup(true);
    }
  }
@Override
  public void update(@NotNull AnActionEvent event)