Issue #2191655 by Berdir: Type hint $entity_type everywhere it is an instance of EntityTypeInterface.