Factored out HasStyledDocumentRepresentation