its static, because it doesnβt need to be a method directly related to class instances, but rather a method that can be used in a static context.
In other words, it only affects the "routes" parameter, it does not use any fields or members of the class, so it makes sense to make it static.
source share