Make setRequiredComponents public and remove setRequiredComponentTypes function