void (@NotNull AnActionEvent e) { ServersTreeStructure.RemoteServerNode node = getRemoteServerTarget(e); boolean visible = node != null; e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && node.isConnected()); }