void (@NotNull AnActionEvent event) { super.update(event); Presentation presentation = event.getPresentation(); HierarchyBrowserBaseEx browser = getHierarchyBrowser(event.getDataContext()); presentation.setEnabled(browser != null && browser.isValidBase()); }