core/src/main/java/org/springframework/security/authorization/AuthorityReactiveAuthorizationManager.java
public static <T> AuthorityReactiveAuthorizationManager<T> hasAnyRole(String... roles) {
		Assert.notNull(roles, "roles cannot be null");
		for (String role : roles) {
			Assert.notNull(role, "role cannot be null");
		}

		return hasAnyAuthority(Stream.of(roles)
				.map(r -> "ROLE_" + r)
				.toArray(String[]::new)
		);
	}
public static <T> AuthorityReactiveAuthorizationManager<T> hasAnyRole(String... roles) {
		Assert.notNull(roles, "roles cannot be null");
		for (String role : roles) {
			Assert.notNull(role, "role cannot be null");
		}

		return hasAnyAuthority(Stream.of(roles)
				.map(r -> "ROLE_" + r)
				.toArray(String[]::new)
		);
	}
public static < T > AuthorityReactiveAuthorizationManager < T > hasAnyRole ( String ... roles ) { Assert . notNull ( roles , "roles cannot be null" ) ; for ( String role : roles ) { Assert . notNull ( role , "role cannot be null" ) ; } return hasAnyAuthority ( Stream . of ( roles ) . map ( r -> "ROLE_" + r ) . toArray ( String [ ] :: new ) ) ; }
Creates an instance of {@link AuthorityReactiveAuthorizationManager} with the
provided authorities.

@author Robbie Martinus
@param roles the authorities to check for prefixed with "ROLE_"
@param <T> the type of object being authorized
@return the new instance
Creates an instance of { @link AuthorityReactiveAuthorizationManager } with the provided authorities .