void (@NotNull AnActionEvent e) { if (!PluginManagementPolicy.getInstance().isInstallFromDiskAllowed()) { Presentation presentation = e.getPresentation(); presentation.setEnabled(false); presentation.setDescription(IdeBundle.message("action.InstallFromDiskAction.not.allowed.description")); } }