then I would suggest to make `allowedTypes` static