@Override
  protected void update(@NotNull FileChooserPanel panel, @NotNull AnActionEvent e) {
    boolean enabled = getProjectPath(e) != null;
    e.getPresentation().setEnabledAndVisible(enabled);
    if (enabled) {
      e.getPresentation().setIcon(ProductIcons.getInstance().getProjectIcon());
    }
  }
@Override
  protected void update(@NotNull FileChooserPanel panel, @NotNull AnActionEvent e)