public static boolean ifAnyGranted(final String grantedRoles) {
    Set<String> parsedAuthorities = parseAuthorities(grantedRoles);
    if (parsedAuthorities.isEmpty())
      return false;

    GrantedAuthority[] authorities = getUserAuthorities();

    for (GrantedAuthority authority : authorities) {
      if (parsedAuthorities.contains(authority.getAuthority()))
        return true;
    }
    return false;
  }