The withAnyOfTheseTypesOrOrderOfPreference parameter is never used in this method, probably you should remove it