The javadoc states that `servletContext` may not be `null`: https://github.com/spring-projects/spring-framework/blob/a5b0399a1d6f3e89ae3bbfeb0b13142ecaddb4e9/spring-web/src/main/java/org/springframework/web/context/ConfigurableWebEnvironment.java#L42 But the parameter is annotated with `@Nullable`: https://github.com/spring-projects/spring-framework/blob/a5b0399a1d6f3e89ae3bbfeb0b13142ecaddb4e9/spring-web/src/main/java/org/springframework/web/context/ConfigurableWebEnvironment.java#L47