@Override
    protected void update(@NotNull AnActionEvent event, @NotNull ToolWindow window) {
      event.getPresentation().setEnabled(!window.getAnchor().isHorizontal());
    }
@Override
    protected void update(@NotNull AnActionEvent event, @NotNull ToolWindow window)