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