public static function entityForm(EntityTypeInterface $entity_type, $replacement_class, $operation = 'default') {
    if (get_parent_class($replacement_class) == $entity_type->getFormClass($operation)) {
      $entity_type->setFormClass($operation, $replacement_class);
    }
  }