I just had the case to iterate over EntityReferenceRevisionsItem's which are similar to EntityReferenceItem to get the target entities, My code snippet was (WRONG EXAMPLE):
get('field_paragraphs_paragraphs'); foreach ($subParagraphsER as $subParagraph) { ... } ?>
I expected to either get the target entities directly in the foreach or have a getTarget() function or something like that. But that's not the case. To iterate over Entity reference (revision) targets the right approach is (RIGHT EXAMPLE):
get('field_paragraphs_paragraphs')->referencedEntities(); foreach ($subParagraphs as $subParagraph) { ... } ?>