@Override
  public void update(@NotNull AnActionEvent e) {
    e.getPresentation().setEnabled(e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT) instanceof JTree);
  }
@Override
  public void update(@NotNull AnActionEvent e)