void (@NotNull FileChooserPanel panel, @NotNull AnActionEvent e) { Project project = e.getProject(); if (LightEdit.owns(project)) { e.getPresentation().setEnabled(getSelectedNioPath(project) != null); } else { e.getPresentation().setEnabledAndVisible(false); } }