@NonNull
    static Collection<Scope> stringCollectionToScopeCollection(@NonNull Collection<String> stringSet)
            throws IllegalArgumentException {
        Set<Scope> scopeCollection = new HashSet<>();

        for (String scopeName : stringSet) {
            scopeCollection.add(Scope.valueOf(scopeName));
        }
        return scopeCollection;
    }
@NonNull
    static Collection<Scope> stringCollectionToScopeCollection(@NonNull Collection<String> stringSet)
            throws IllegalArgumentException {
        Set<Scope> scopeCollection = new HashSet<>();

        for (String scopeName : stringSet) {
            scopeCollection.add(Scope.valueOf(scopeName));
        }
        return scopeCollection;
    }
@ NonNull static Collection < Scope > stringCollectionToScopeCollection ( @ NonNull Collection < String > stringSet ) throws IllegalArgumentException { Set < Scope > scopeCollection = new HashSet <> ( ) ; for ( String scopeName : stringSet ) { scopeCollection . add ( Scope . valueOf ( scopeName ) ) ; } return scopeCollection ; }
Converts a {@link Set} of {@link String}s to {@link Collection} of {@link Scope}s.

@param stringSet the {@link Set} of {@link String}s to convert.
@return a {@link Collection} of {@link Scope}s.
Converts a { @link Set } of { @link String } s to { @link Collection } of { @link Scope } s .