diff --git a/src/Plugin/Scanner/Paragraph.php b/src/Plugin/Scanner/Paragraph.php
index 0d29ddb436fc03672011dd2f16405ba06172f9d9..aea54d467aa57902337d5bc0626455f02ccc9715 100644
--- a/src/Plugin/Scanner/Paragraph.php
+++ b/src/Plugin/Scanner/Paragraph.php
@@ -54,6 +54,9 @@ class Paragraph extends Entity {
             $parentEntity = $paragraph->getParentEntity();
 
             if (!empty($parentEntity)) {
+              if (!method_exists($parentEntity, 'getParentEntity')) {
+                continue;
+              }
               $parentEntityType = $parentEntity->getEntityTypeId();
               // In the case of nested relationships we need to find the base
               // entity.