void (@NotNull AnActionEvent e) { ServersTreeStructure.DeploymentNodeImpl node = getTarget(e, ServersTreeStructure.DeploymentNodeImpl.class); e.getPresentation().setEnabledAndVisible(node != null && node.isEditConfigurationActionVisible()); }