private boolean regionDialingFromMatchesNumber(PhoneNumber number,String regionDialingFrom){
  List<String> regionCodes=getRegionCodesForCountryCode(number.getCountryCode());
  return regionCodes.contains(regionDialingFrom);
}

private boolean regionDialingFromMatchesNumber ( PhoneNumber number , String regionDialingFrom ) { List < String > regionCodes = getRegionCodesForCountryCode ( number . getCountryCode ( ) ) ; return regionCodes . contains ( regionDialingFrom ) ; }
helper method to check that the country calling code of the number matches the region it ' s being dialed from .
