private Optional<Scopes> getScopes(OAuthScope[] scopes) {
		Scopes scopesObject = new Scopes();
		Arrays.stream(scopes).forEach(scope -> scopesObject.addString(scope.name(), scope.description()));
		return Optional.of(scopesObject);
	}
Gets scopes.

@param scopes the scopes
@return the scopes
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/SecurityService.java