@Override
  public void update(@NotNull AnActionEvent e) {
    DeploymentNode node = getDeploymentTarget(e);
    Presentation presentation = e.getPresentation();
    boolean visible = node != null && node.isDeployActionVisible();
    presentation.setVisible(visible);
    presentation.setEnabled(visible && node.isDeployActionEnabled());
    if (node != null && node.isDeployed()) {
      presentation.setText(CloudBundle.messagePointer("action.presentation.DeployAction.text"));
      presentation.setDescription(CloudBundle.messagePointer("action.presentation.DeployAction.description"));
    }
    else {
      presentation.setText(getTemplatePresentation().getText());
      presentation.setDescription(getTemplatePresentation().getDescription());
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)