DocumentationComponent (@NotNull ToolWindow toolWindow, @NotNull DocumentationManager documentationManager) { Content content = getDocumentationContent(toolWindow, documentationManager); if (content == null) return null; return (DocumentationComponent)content.getComponent(); }