private @Nullable Content getCurrentContent() {
    ToolWindow window = getCurrentToolWindow();
    if (window == null) {
      return null;
    }
    ContentManager manager = window.getContentManagerIfCreated();
    if (manager == null) {
      return null;
    }
    return manager.getContent(this);
  }
private @Nullable Content getCurrentContent()