@Override
  protected void update(ToolWindow window, Presentation presentation) {
    presentation.setEnabled(window.getContentManager().getContentCount() > 1);
  }
@Override
  protected void update(ToolWindow window, Presentation presentation)