Implement #6912 / #6944 but with a common base class for ParagraphNode and ListItemNode See also: _Originally posted by @etrepum in https://github.com/facebook/lexical/issues/6912#issuecomment-2539681890_ Closes: #6476