void (@NotNull FileSystemTree fileChooser, @NotNull AnActionEvent e) { // the old chooser uses `com.intellij.openapi.fileChooser.ex.TextFieldAction` instead e.getPresentation().setEnabledAndVisible(false); }