protected @Nullable Content getContentFromEvent(@NotNull AnActionEvent e) {
    Content content = getNonToolWindowContent(e);
    if (content == null) {
      content = getToolWindowContent(e);
    }
    return content != null && content.isValid() ? content : null;
  }
protected @Nullable Content getContentFromEvent(@NotNull AnActionEvent e)