private static String createScope(List<String> perms){
  if (perms == null || perms.isEmpty()) {
    return "";
  }
  return TextUtils.join(" ",perms);
}

private static String createScope ( List < String > perms ) { if ( perms == null || perms . isEmpty ( ) ) { return "" ; } return TextUtils . join ( " " , perms ) ; }
builds scope based on list of permissions .
